I've been trying react-native development and i am in its first stage so I was trying to create a simple Hello World Application but the system keeps showing an error I cannot solve.
My index.js file is as below:
import {AppRegistry} from 'react-native';
import App from './App';
import {name as appName} from './app.json';
AppRegistry.registerComponent(appName, () => App);
and the main App.js file is as below
export default class App extends React.Component{
render()
return {(
<View style={styles.container}>
<Text style={styles.welcome}>
Hello World!
</Text>
</View>
);
}
};
i've fixed the babel and jest issues as well, any help is appreciated. Thank You.