React Native - ReactComponentTreeHook.purgeUnmountedComponents不是函数

A. *_*vva 6 javascript reactjs react-native

当我使用react-native run-ios或仅为iOS构建时,我收到此错误消息:

ReactComponentTreeHook.purgeUnmountedComponents is not a function. (In 'ReactComponentTreeHook.purgeUnountedComponents()', 'ReacComponentTreeHook.purgeUnmountedComponents' is undefined)
Run Code Online (Sandbox Code Playgroud)

我使用CRNA并弹出.我也使用过react-native-push-notificationreact-native-beacons-manager遵循两者的指示.当我在Android中运行它时,该项目有效.

我在这里读到,这取决于我使用的缩小版react和未缩小版本的事实,react-dom但我不知道在React Native中我可以改变它的位置.

我该如何解决这个问题?

A. *_*vva 7

最后,我认为我安装的版本reactreact-native软件包没有"匹配".我看到了这条消息npm WARN react-native@0.48.4 requires a peer of react@16.0.0-alpha.12 but none was installed.(由于我收到了另一个警告,我安装了以前的版本).

一旦我安装react@16.0.0-alpha.12,问题就解决了.显然facebook已从ReactComponentTreeHook.purgeUnmountedComponents代码中删除了该功能,不再使用它了.