-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read property 'restart' of null #249
Comments
I do have the same issue, Has anyone with any solution helped? |
I also had this issue earlier, but after restarting the bundler and rebuilding the app it went away. |
Have the same issue. Rebuilding the bundle did not help. |
Make sure rebuilding your app after installing react-native-restart It will not work in Expo Go You can create a development build which is like a custom version of Expo Go. It won't work in Expo Go, because it includes native code, and that native code is not built into Expo Go. (And can't be added later.) So you need to build your app. e.g.:
Then install that on your device/emulator and use it instead of Expo Go. |
Thanks @bilalaurangzebkhan. This explanation should be in README.. |
Yes @ansmlc the newer version does auto-linking. and the react-native-restart will not work on expo Go but will work fine for development and production build. |
React native : 0.72.4
react-native-restart: 0.0.27
WARN Possible Unhandled Promise Rejection (id: 0):
TypeError: Cannot read property 'restart' of null
TypeError: Cannot read property 'restart' of null
The text was updated successfully, but these errors were encountered: