Hello World Example Using React Native

React Native

Nicesnippets

876

06-06-2020


Hello World Example Using React Native

Hi Guys

In this blog,I will explain you how to print hello world using react native. You can easy run hello world example using react native.

Here, I will give you full example for simply display hello world in react native.

Step 1 - Create project


In the first step Run the following command for create project.

expo init HELLOWORLD

Step 2 - App.js

In this step, You will open App.js file and put the below code.

export default function App() {

return (

<View style={styles.container}>

<Text>Hello World!</Text>

</View>

);

}

Step 3 - Run project

In the last step run your project.

expo start --web

Now run your project in browser.

port : http://localhost:19006/

It will help you...


Recommended Posts