![]() ![]() In this step, you can decide if you want to opt-in for Google Analytics. Note that it does not have to be the same as the Expo project name, and then click Continue. Next, add the name of the new Firebase project. After that, log in to your Firebase console and create a new Project using the “Create a project” button. If you don’t have a Firebase account yet, visit and create one. To get started, you’re going to need a Firebase project. Next, we will set up the cloud project on Firebase. You can read more about this on the Expo official documentation or the Firebase docs. This is due to the library’s limitations with the Expo Go app. Note that we purposely installed the package firebase, which is the JavaScript SDK, instead of the react-native-firebase. You can choose blank, of course, but why not try TypeScript? It’s awesome.Īfter making your selection, you will be ready to continue installing the additional packages we will need.įor those additional libraries, run: expo install firebase dotenv react-native-elements expo-constants Personally, I always go with blank (TypeScript). expo init expo-with-firebase-auth-demoīefore the project is ready to go, Expo will ask you to provide the template you want and will offer the following options: Note that our project name is expo-with-firebase-auth-demo, but you can name it differently. Once you have that installed, you can create a new project with the following command. If you don’t have it installed on your system, you will have to run: npm install -global expo-cli Secure Firebase settings using environment variablesīefore we get started with the Firebase integration, we need to set up our project with the Expo CLI.Configure the Firebase SDK in your Expo application.Feel free to jump to the parts you’re interested in most with the links below: The source code for this tutorial is available on GitHub. Dynamic screen routing using React Navigation.User’s home screen restricted to logged-in users.Sign-up and login screens (using email and password). ![]() By the end, we will have a running mobile application with the following functionalities: In this tutorial, we will build a mobile application with Expo that will integrate with the Firebase authentication module. Integrating Firebase authentication into an Expo mobile app Juan Cruz Martinez Follow I'm an entrepreneur, developer, author, speaker, YouTuber, and doer of things. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |