Skip to main content

Posts

Showing posts with the label ios

Writing a Hello World Android/iOS Native Application in React Native

Assuming that you have installed the React Native as per instruction given in the post - Installing React Native in Ubuntu Linux / Mac OS Step 1: Open the Terminal Press CTRL+T to open the terminal in Linux or Find Terminal by searching it in Mac Step 2: Create a new react native project $react-native init AwesomeProject This will create a new AwesomeProject Folder and copy all necessary files and folders. This will install all the dependencies for your project. Step 3: Type Hello World String Go inside the AwesomeProject folder you will see index.android.js and index.ios.js. If you are developing for Android edit index.android.js or if you are developing for IOS edit index.ios.js. Now open any of them type hello world by replacing the default text in the following way.       <Text>Hello world!</Text> You whole index file should look like this import React, { Component } from 'react'; import { AppRegistry, Text } from 'react-nativ...