ReactNative开发之疑难杂症2

1.

package.json中添加如下命令,

运行

参考链接

https://github.com/facebook/react-native/issues/18313

2.

修改index中的export default class { … }为export default class Chicken { .. }

参考链接

https://github.com/magicismight/react-native-root-toast/issues/79

3.

Connection has no connected handler

参考链接

https://github.com/facebook/react-native/issues/10027

https://stackoverflow.com/questions/37886600/ios-10-doesnt-print-nslogs

Realm构建太慢

4:

v0.57.2

_this._registerEvents is not a function on a clean project

6.

使用

查看库的依赖树

手动统一版本

参考链接

Android 日常报错之 Android dependency ‘com.android.support:support-v4’ has different version

support中v4 v7库版本错误详解

7.

由于添加多渠道打包代码导致,改为如下命令

react-native run-android –variant=xxxDebug –appId com.xx.xxx

8.realm json.hpp not found

removing ios/build compilation via react-native run-ios

9.Error: Could not find iPhone 6 simulator

What fixed it for me was manually updating our node_modules/react-native/local-cli/runIOS/findMatchingSimulator.js from

to

If you console.log(version), each is now prefixed with com.apple.CoreSimulator.SimRuntime.

10.

ios release运行不显示图表

添加 originWhitelist={[‘*’]}

分享到:

发表评论

沙发空缺中,还不快抢~