我已升级到React/RN的最新版本:

我开始收到很多关于样式表的警告.我实际上没有使用React.样式表的PropTypes验证,那么为什么要抛出这些警告呢?

const styles = StyleSheet.create({
    welcome: {
        fontSize: 20,
        textAlign: "center",
        margin: 10,
    },

例外情况经理.js:76警告:您正在手动调用

例外情况经理.js:76警告:您正在手动调用

例外情况经理.js:76警告:您正在手动调用

推荐答案

React native 0.30取决于React 15.2.0,而不是15.2.1.所以你应该做rm -rf node_modules/react,从package.json中删除react版本,然后是npm install --save react@15.2.0.这应该能奏效.

React-native相关问答推荐

将值从一个 js 文件传递​​到 react native 中的另一个 js 文件:react native

如何解决Readonly<{}> 类型上不存在属性 navigation&

如何为我的 React Native Android 应用程序使用 Crashlytics?

react-native android中出现此问题Cannot convert argument of type class org.json.JSONArray的原因是什么?

React-native,iOS模拟器停止响应CMD + D

因 JVM 堆空间耗尽而导致守护进程到期?

Xcode 设备不可用,未找到运行时配置文件

获取没有地理位置 API React-native 的国家/城市?

如何使用 Stripe (stripe.js) 和 react-native

如何在我的 React Native Android 应用程序中显示当前的 CodePush 版本标签?

更新 this.state.dataSource 不会更新 ListView

React Nativedropped so far性能监视器计数不断增加

如何在 React Native 中使用 index.js 而不是 (index.ios.js, index.android.js) 进行跨平台应用程序?

占位符文本在(多行)TextInput for Android(React Native)中的位置

React-native:图像未显示在 android 设备中,但在模拟器中完美显示

xcode 10错误:multiple commands produce

Unexpected token on "export default const"

无法解析模块react-navigation

ListView 和 FlatList 有什么区别?

如何在 React Native 中将图像放置在其他图像之上?