react-native-restart icon indicating copy to clipboard operation
react-native-restart copied to clipboard

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

Open SonuGitCfcs opened this issue 1 year ago • 5 comments

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 avatar Feb 22 '24 10:02 SonuGitCfcs

Screenshot 2024-02-22 at 4 03 00 PM

SonuGitCfcs avatar Feb 22 '24 10:02 SonuGitCfcs

Screenshot 2024-03-01 at 7 28 57 PM

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

pushpender-singh-ap avatar Mar 01 '24 14:03 pushpender-singh-ap

npx react-native start --reset-cache

chinNuttawot avatar May 09 '24 17:05 chinNuttawot

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

GorArestakesyan avatar May 24 '24 14:05 GorArestakesyan

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

pushpender-singh-ap avatar May 24 '24 14:05 pushpender-singh-ap