首页 > 解决方案 > React Native 线性渐变包在 IOS 上不起作用

问题描述

我正在尝试使用这个包
https://github.com/react-native-community/react-native-linear-gradient 对于 ios 我遵循了这些步骤;npm i --save react-native-linear-gradient react-native 链接

然后我重新启动了我的打包程序并运行 react-native run-ios App works。然后我像这样导入包

import RNAccountKit from 'react-native-facebook-account-kit';

然后应用程序失败。

这是问题的详细信息; https://github.com/react-native-community/react-native-linear-gradient/issues/323

有任何想法吗 ?

标签: iosreact-native

解决方案


而不是自动安装尝试手动安装,然后再试一次


推荐阅读