Closed dmius closed 7 years ago
I believed there is something wrong with your JS code. You should take a look at it first.
In debug mode RN is started normal. As I wrote before for test I use empty app generated as described here: https://facebook.github.io/react-native/docs/getting-started.html
So all my code is
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class pn extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native!
</Text>
<Text style={styles.instructions}>
To get started, edit index.android.js
</Text>
<Text style={styles.instructions}>
Double tap R on your keyboard to reload,{'\n'}
Shake or press menu button for dev menu
</Text>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
welcome: {
fontSize: 20,
textAlign: 'center',
margin: 10,
},
instructions: {
textAlign: 'center',
color: '#333333',
marginBottom: 5,
},
});
AppRegistry.registerComponent('pn', () => pn); ```
I mean default generated code, because some part is not displayed in post. Really there is
return (
< View style={styles.container}>
< Text style={styles.welcome}>
Welcome to React Native!
< /Text>
< Text style={styles.instructions}>
To get started, edit index.android.js
< /Text>
< Text style={styles.instructions}>
Double tap R on your keyboard to reload,{'\n'}
Shake or press menu button for dev menu
< /Text>
< /View>
);
}`
I saw a line in your post "React Native version: 0.36.1, 0.42". You're running 0.42 JS code in application with 0.36.1 react native library? If so, you should align them.
My main application use RN 0.36 but have same problem. I started new empty application with 0.42 and see described problem like in my main app. So every version of RN started with different library.
At this moment, I think whenever you upgraded your JS, you need to upgrade your application as well with react native library with the same version.
Now I have two different applications, with different package.json, placed in different fodlers with different node_modules folder. With same problem.
I believe it's related to this: https://github.com/facebook/react-native/issues/12772
Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally!
If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:
If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution.
Description
Builded release APK file do not started on device (emulator). Same problem with my application and empty project created as described in https://facebook.github.io/react-native/docs/getting-started.html After apk started on device I see what application is initialized, but loading of RN part failed, as result all application crashed. In adb log i see: