有谁能帮我解决这个问题吗?最近我在react-native项目中工作,我想在添加代码后创建底部选项卡导航,它将显示如下错误 And these are the packages included
"dependencies": {
"@react-navigation/native": "^5.1.4",
"react": "16.9.0",
"react-native": "0.61.4",
"react-native-eleme
复制步骤:
create-react-native-app proj && cd proj && npm i
安装使用密码的软件包。执行中列出的步骤:
npm i -S react-native-crypto && npm i -S react-native-randombytes
react-native link react-native-randombytes
收到了反应-本机链路故障的警告,但是在下列黑客密码依赖不再是一个问题之后:
npm i --save-dev tradle/rn-nodeify
./node_modules/.bi
我正在致力于一个反应本地项目与博览会和纱线,并需要安装一个新的依赖,以获得设备制造商(它是反应-本机设备-信息,如果你想知道)。我成功地安装了它,并在我的代码中实现了它,但是在用expo go打开应用程序时,我看到了一条错误消息。
@React-native-community/react-native-device-info: NativeModule.RNDeviceInfo is null. To fix this issue follow these steps: *useless steps*
在github中,我发现了很多问题来解决这个问题(开发人员回答这个问题不是他的问题,因为它
我试着用Jest测试我的。我的应用程序使用了一些本地模块,我甚至无法运行最初的测试。
我的应用程序使用具有本机依赖关系的组件react-native-camera。
初步测试:
import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-re
我试图设置一个react本机项目,在这个项目中,我只尝试用package导航在app.js中创建堆栈导航器,我遵循这个指南,然后进入,但是我得到了错误。
编译失败。D:/Visual Studio Code/Resturant Review/food/App.js模块未找到:无法解析“D:\Visual Studio Code\Resturant Review\food”中的@react导航/堆栈--这是我的代码:
//app.js
import * as React from 'react';
import { View, Text } from 'react-n
我安装了@react-native-firebase的v6,它按预期工作,但当我尝试运行单元测试时,我得到了以下错误:
Jest encountered an unexpected token
Details:
/node_modules/@react-native-firebase/database/lib/index.js:18
import { isBoolean, isNumber, isString } from '@react-native-firebase/app/lib/common';
^
SyntaxError: Unexpected t
我在tvOS上找不到advertisingId。虽然我使用的是typescript,但我已经尝试过react-native-advertising-id,这个库除了不工作之外,并不适合我,因为我缺少输入。 然后我切换到react-native-idfa-aaid,直到我在tvOS上运行它之前,它工作得很好……这就是我得到的错误。 null is not an object (evaluating '_reactNativeIdfaAaid.default.getAdvertisingInfo') 它在安卓手机模拟器和iOS手机模拟器上运行良好。是的,我可以在lib描述中看到它
我正在尝试通过使用安装页面上的步骤:expo install @notifee/react-native来安装Notifee,然后在"@notifee/react-native"文件中添加"@notifee/react-native"到我的app.json文件中,然后运行expo prebuild,但是我仍然会收到错误Error: Notifee native module not found.和Invariant Violation: "main" has not been registered.,我手动地将"plugins":
在iOS链接阶段,我开始看到的错误。
React原生版本:0.41.2、0.40、0.39
所有操作都很好,我编辑了Android版本,响应本地代码没有改变,当这种链接错误开始显示时,没有找到/node_modules/react-native/React/Base/{RCTHeaderName.h}路径上的标题:
In file included from /Users/user/ReactNativeProject/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.h:
我会卸载react-native-reanimated。摘除前有unlinked。
输出:
> npx react-native unlink react-native-reanimated
warn Calling react-native unlink [packageName] is deprecated in favor of autolinking. It will be removed in the next major release.
Autolinking documentation: https://github.com/react-native-community/
我试图在iOS中构建一个使用Firebase的,但我得到了以下错误:
error: property with 'retain (or strong)' attribute must be of object type While building module 'FirebaseStorage'
这是一个错误日志:
In file included from /Users/xxxx/Documents/Grups/grups/node_modules/@react-native-firebase/messaging/ios/RNFBMessaging/RNF