我试着用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本机在Nexus 5X上构建和安装apk,但突然关闭。我使用亚行logcat查找以下错误:
01-06 10:04:19.086 12909 12926 I ReactNativeJS: Running application "YCParAppAndroid" with appParams: {"initialProps":{},"rootTag":1}. __DEV__ === false, development-level warning are OFF, performance optimizations are ON
复制步骤:
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
node_modules@expo\vector-icons\build\vendor\react-native-vector-icons\lib\create-icon-set.js:#不能被克隆。错误:#无法克隆。(节点:v8:260:7)在(D:\React\CanReel\node_modules@babel\core\lib\transformation\util\clone-deep.js:16:30) at normalizeFile (D:\React\CanReel\node_modules@babel\core\lib\transformation\normalize-fi
我将react本机版本升级为0.63.2。然后我在Android应用程序上遇到了一个问题。
Android应用程序显示空屏幕。
错误如下:
Warning: Picker has been extracted from react-native core and will be removed in a future release.
It can now be installed and imported from '@react-native-community/picker' instead of 'react-native'.
See https:/
每次将RtcEngine导入到我的应用程序(import RtcEngine from 'react-native-agora';)中时,我都会收到以下错误:
TypeError: null is not an object (evaluating 'AgoraRtcChannelModule.prefix')
at node_modules\react-native\Libraries\LogBox\LogBox.js:148:8 in registerError
at node_modules\react-native\Libraries\LogBox\Lo
因为ViewPropTypes已经从“react原生”中删除了,并且使用它的包没有更新。此错误出现在生成应用程序之后。
ERROR Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'.
ERROR Invariant Violation: Module AppRegistry is not a registered callabl