avishayil / react-native-restart

React Native Package With One Purpose: To Restart Your React Native Project
MIT License
942 stars 150 forks source link

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

Open SonuGitCfcs opened 9 months ago

SonuGitCfcs commented 9 months ago

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 commented 9 months ago

Screenshot 2024-02-22 at 4 03 00 PM

pushpender-singh-ap commented 9 months ago
Screenshot 2024-03-01 at 7 28 57 PM

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

chinNuttawot commented 6 months ago

npx react-native start --reset-cache

GorArestakesyan commented 6 months ago
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 commented 6 months ago

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