This repository demonstrates how to add Back4app authentication to a React Native (Expo) app.
For more information check out the article.
-
Clone the repository.
-
Install the dependencies:
$ npm install
-
Create a .env file in the root directory and add the following environment variables:
EXPO_PUBLIC_APPLICATION_ID=<your-back4app-application-id> EXPO_PUBLIC_JAVASCRIPT_KEY=<your-back4app-client-key>
To obtain the keys, log into your Back4app, select your app, and navigate to "App Settings > Security & Keys".
-
Start the Expo server:
$ npx expo start
-
Press
a
to open the app in an Android emulator ori
to open the app in an iOS simulator. -
Voila! You have successfully set up the project.