React Native - ReactComponentTreeHook.purgeUnmountedComponents is not a function

I get this error message when I use react-native run-iosor just create for iOS:

ReactComponentTreeHook.purgeUnmountedComponents is not a function. (In 'ReactComponentTreeHook.purgeUnountedComponents()', 'ReacComponentTreeHook.purgeUnmountedComponents' is undefined)

I used CRNA and threw it away. I also used react-native-push-notificationand react-native-beacons-managerand follow the instructions of both. The project works when I run it in Android.

I read here that it depends on what I use the mini version reactand the non-urgent version react-dombut I don’t see where I can change this when it comes to React Native.

How to solve this?

+6
source share
1 answer

, , react react-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 , .

+5

All Articles