dominicstop / react-native-ios-context-menu

A react-native component to use context menu's (UIMenu) on iOS 13/14+
MIT License
572 stars 29 forks source link

`TypeError: null is not an object (evaluating 'RNIUtilitiesModule.initialize')` #57

Closed nandorojo closed 2 years ago

nandorojo commented 2 years ago
TypeError: null is not an object (evaluating 'RNIUtilitiesModule.initialize')
/node_modules/react-native/Libraries/Core/ExceptionsManager.js:95:4 in reportException
/node_modules/react-native/Libraries/Core/ExceptionsManager.js:141:19 in handleException
/node_modules/react-native/Libraries/Core/setUpErrorHandling.js:24:6 in handleError
/node_modules/expo/build/errors/ExpoErrorManager.js:25:19 in errorHandler
/node_modules/expo/build/errors/ExpoErrorManager.js:30:24 in <anonymous>
/node_modules/expo-error-recovery/build/ErrorRecovery.fx.js:12:21 in ErrorUtils.setGlobalHandler$argument_0

I'm getting this error on 1.14.0, from these new changes: https://github.com/dominicstop/react-native-ios-context-menu/commits/3d112239b2a9aa8406a61032aa60abd51844aeb2/src/native_modules/RNIUtilitiesModule.ts

For some reason, it isn't finding these native modules, even after running pod install. I wonder if there are any good ways to debug?

Update: sorry, I fixed it.

peterferguson commented 2 years ago

hey @nandorojo, how did you fix this?

Currently running into this using zeego

nandorojo commented 2 years ago

be sure to rebuild the dev client and not use expo go

peterferguson commented 2 years ago

Cheers just had to rebuild my dev client 👍