Hello,
I have an Alert in ComponentWillReceiveProps which happens according to redux status. It works fine on android but on ios, it closes immediately and the app is just frozen.
Code
componentWillReceiveProps(nextProps) {
if (nextProps.error) {
Alert.alert(
'Error',
'Your request could not be processed.Please check your data and try again later.'
);
this.props.resetStatus();
}
}
Environment
The app is detached
Environment:
OS: macOS High Sierra 10.13.6
Node: 10.6.0
Yarn: 1.3.2
npm: 6.1.0
Watchman: 4.9.0
Xcode: Xcode 9.4.1 Build version 9F2000
Android Studio: 3.0 AI-171.4443003
Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: https://github.com/expo/react-native/archive/sdk-27.0.0.tar.gz => 0.55.2