当我运行react-native run-ios
我收到以下错误:
In file included from /Users/zoe/Developer/fireClient/node_modules/react-native-overlay/RNClickThroughWindow.m:2:
../react-native/React/Views/RCTView.h:21:1: error: duplicate interface definition for class 'RCTView'
@interface RCTView : UIView
^
In file included from /Users/zoe/Developer/fireClient/node_modules/react-native-overlay/RNClickThroughWindow.m:2:
In file included from ../react-native/React/Views/RCTView.h:15:
/Users/zoe/Developer/fireClient/ios/build/Build/Products/Debug-
......还有更多:https://justpaste.it/18vvl
我想知道我能做些什么来解决这个问题。
我已升级到RN的最新版本,并且我已将所有包裹链接起来。
答案 0 :(得分:1)
我认为您可以从react-native-overlay
删除node_module
。然后再次尝试安装npm install react-native-overlay --save
。或者您可以在RN 0.40之前升级。
我认为你的问题与#Issue 463相同。
希望我能帮助你。