See this blog post for more info.
-
Follow the React Native getting started instructions to install React Native
-
Create a new React Native app named EmployeeDirectory:
react-native init EmployeeDirectory cd EmployeeDirectory react-native run-ios
-
Clone the sample app repository:
git clone https://github.com/ccoenraets/employee-directory-react-native
-
Copy the
app
folder fromemployee-directory-react-native
into yourEmployeeDirectory
project folder -
Open
index.ios.js
. Delete the existing content and replace it with:import {AppRegistry} from 'react-native'; import EmployeeDirectoryApp from './app/EmployeeDirectoryApp'; AppRegistry.registerComponent('EmployeeDirectory', () => EmployeeDirectoryApp);
-
Save index.ios.js
-
Hit Cmd + R to refresh the app in the emulator