react-native-restart: Cannot read property Restart of undefined
When I install the dependency react-native-restart, I did the automatic installation via react-native link with successfully linked result.
Environment: macOs and iOS emulator
My usage is
import RNRestart from 'react-native-restart';
and then in one action I call
RNRestart.Restart();
but got error - ‘Cannot read property Restart of undefined’
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (1 by maintainers)
@shushuy thank you but still the same issue. Any solution guys for this 'undefined is not an object(evaluating ‘_reactNativeRestart2.default.Restart))’
@psloboda how about undefined is not an object (evaluating ‘_reactNativeRestart2.default.Restart’)? i got this error when i tried to click onPress={() => RNRestart.Restart()}