Environment
Run react-native info in your terminal and paste its contents here.
Environment:
OS: Windows 10
Node: 8.11.3
Yarn: 1.7.0
npm: 5.6.0
Watchman: Not Found
Xcode: N/A
Android Studio: Not Found
Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: ~0.55.2 => 0.55.4
I tried to use the latest version (0.56) but as this issue reported, it even failed to installed.
Description
Just create an new app, and only try to add padding: '20px' into the style of view, then it crashed and could not open again.
Nothing error found, both the app and the Metro Bundler Console. When I connect the android log (react-native log-android), I just found that:
CatalystInstanceImpl.destroy() start
Reproducible Demo
importReactfrom'react';import{StyleSheet,Text,View}from'react-native';exportdefaultclassAppextendsReact.Component{render(){return(<Viewstyle={styles.container}><Text>Open up App.js to start working on your app!</Text><Text>Changes you make will automatically reload.</Text><Text/* style={{margin: '20px'}} */>Shake your phone to open the developer menu.</Text></View>);}}conststyles=StyleSheet.create({container: {flex: 1,backgroundColor: '#fff',alignItems: 'center',justifyContent: 'center',// padding: '20px', // cancel the comment and the app will be broken.},});
Environment
Run
react-native infoin your terminal and paste its contents here.Description
Just create an new app, and only try to add
padding: '20px'into the style of view, then it crashed and could not open again.Nothing error found, both the app and the Metro Bundler Console. When I connect the android log (react-native log-android), I just found that:
Reproducible Demo