Start your React Native Expo project using a pre built template
In this section you will learn how to get started with a React Native with Expo template and how to connect it to Back4App in 4 easy steps.
To complete this tutorial, you will need:
Step 1 - Get the template
Download the template at our GitHub repository. You can do that using the following command line:
$ curl -LOk https://github.com/templates-back4app/react-native-expo/archive/master.zip && unzip master.zip
Step 2 - Download app’s dependencies
- Make sure that you have installed the
npmin your system.
Look at the get npm guide for more info.
npm installin the project directory to install required react dependencies.
npm startin the project directory to compile and enable automatic re-compiles to your app.
Step 3 - Set up app’s credentials
- Open your React file at:
- Go to your app
Dashboardat Back4App Website and click on
- Return to your
Keys.jsfile and paste your
Step 4 - Test your connection
- Open your project’s terminal.
- Make sure you have installed the npm depedencies by typing
expo start --tunnel
- Done, the React Native must be installed and you also can see the device going to your dashboard.
At this point, you have learned how to get started with React Native app