I am using SDK 31 to create a new project.
I create the project using
npm init my-project
After that, I eject my project using cmd:
expo eject
I open android directory under my-project/android in Android Studio, it built successfully, but didn’t load my App.js page. It just showing the white page.
App.js
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
export default class App extends React.Component {
render() {
return (
<View style={styles.container}>
<Text>Open up App.js to start working on your app!</Text>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});