Hello World
Editing index.ios.js or index.android.js
Section titled “Editing index.ios.js or index.android.js”Open index.ios.js or index.android.js and delete everything between the <View> </View>. After that, write <Text> Hello World! </Text> and run the emulator.
You should see Hello World! written on the screen!
Congrats! You’ve successfully written your first Hello World!
Hello world!
Section titled “Hello world!”import React, { Component } from 'react';import { AppRegistry, Text } from 'react-native';
class HelloWorldApp extends Component { render() { return ( <Text>Hello world!</Text> ); }}
AppRegistry.registerComponent('HelloWorldApp', () => HelloWorldApp);