react-native 运行-ios 给出了这个错误

react-native run-ios gives this error

问题

当我运行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 并且我已经链接了我所有的包。

我认为您可以从 node_module 中删除 react-native-overlay。并再次尝试安装 npm install react-native-overlay --save。或者您可以升级到 RN 0.40。

我认为你的问题与这个#Issue 相同463

希望能帮到你