React native 0.59.x crashes on Android without any error message
See original GitHub issueš Bug Report
RN 0.59 isnāt stable on Android. if you spend 20 seconds wandering around in your app, it will crash and stop working with no error message whatsoever. I have to add I didnāt face this issue on Expo SDK 32 or RN v0.58.6.
To Reproduce
react-native init
react-native run-android
and use the Code Example as your App class.
now just type a few words in TextInput and then remove some letters and again type somethingā¦; it takes less than 5 seconds to crash without any error message.
Expected Behavior
just to work in a stable manner.
Code Example
export default class App extends Component {
state = { text: "" };
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>Welcome to React Native!</Text>
<Text style={styles.instructions}>To get started, edit App.js</Text>
<Text style={styles.instructions}>{instructions}</Text>
<TextInput
onChangeText={text => {
this.setState({ text });
}}
value={this.state.text}
placeholder="please don't crash!"
/>
</View>
);
}
}
Environment
React Native Environment Info: System: OS: Windows 10 CPU: (8) x64 Intel® Core⢠i7-4702MQ CPU @ 2.20GHz Memory: 913.58 MB / 5.76 GB Binaries: npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD IDEs: Android Studio: Version 3.2.0.0 AI-181.5540.7.32.5056338
Android 7.0 (real device: Samsung S7) React Native v0.59.3
Issue Analytics
- State:
- Created 4 years ago
- Reactions:26
- Comments:95 (6 by maintainers)
Please note this issue tracker is not a help forum (as stated in issue template).
We recommend using StackOverflow where there are community incentives to help others or our Discord channel for questions. We can reopen this once there is a concrete bug report and this is a real issue, or even better: please send us a PR with a fix!
It seems all they care is closing issues and keeping them below 400 even though lots of them are still relevant. @Fouppy