Skip to content
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

Unhandled JS Exception: TypeError: 1. default. restart is not a function. IOS #262

Open
SonuGitCfcs opened this issue Feb 22, 2024 · 5 comments

Comments

@SonuGitCfcs
Copy link

Issue : After calling below function
setTimeout(() => {
RNRestart.Restart();
}, 300);

App does not reopen in release

Apple M1 Chip
React native : 0.70.6
React native restart : 0.0.24

Screenshot 2024-02-22 at 3 27 32 PM

@SonuGitCfcs
Copy link
Author

Screenshot 2024-02-22 at 4 03 00 PM

@pushpender-singh-ap
Copy link

Screenshot 2024-03-01 at 7 28 57 PM

May be you are using Deprecated method use RNRestart.restart();

@chinNuttawot
Copy link

npx react-native start --reset-cache

@GorArestakesyan
Copy link

Screenshot 2024-03-01 at 7 28 57 PM May be you are using Deprecated method use `RNRestart.restart(); `

in 0.0.24 restart method with lowercase does not exist

@pushpender-singh-ap
Copy link

@GorArestakesyan use the latest version of the react-native-restart package. v0.0.27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants