Overview
The expo-firebase-starter is a template that allows developers to quickly start with Expo + Firebase projects. It supports both Expo iOS and Expo Android, and can be run with Expo Go. The template includes a variety of features such as navigation using react-navigation, Firebase JS SDK v9, Firebase as the backend for email authentication, custom and reusable components, and more.
Features
- Expo SDK 46: Built on Expo SDK 46 for enhanced functionality.
- React Navigation 6.x.x: Supports navigation using the latest version of react-navigation.
- Firebase JS SDK v9: Utilizes the Firebase JS SDK v9 for seamless integration with Firebase services.
- Firebase Email Authentication: Provides a backend for email authentication using Firebase.
- Custom and Reusable Components: Includes a variety of custom and reusable components for easy development.
- Password Field Visibility: Includes a custom hook to toggle the visibility of password fields on a TextInput.
- Formik & Yup: Handles server errors using Formik and creates login, signup, and password reset forms using yup schema validation.
- Forgot Password Reset: Utilizes Firebase’s email method to handle forgot password reset functionality.
- Expo Vector Icons: Uses Expo Vector Icons for high-quality icons.
- KeyboardAwareScrollView: Implements the KeyboardAwareScrollView package to handle keyboard appearance and automatically scrolls to focused TextInput.
- Environment Variable Management: Uses dotenv and expo-constants packages to manage environment variables and protect sensitive information.
- Functional Components & React Hooks: All components are functional components and utilize React Hooks for improved performance.
Installation
To install the expo-firebase-starter, you can follow these steps:
- Create a new project using the firebase starter template.
- Rename the file
example.env to .env. - Open the
.env file and update it with your own configuration. - Start the project by running the following commands:
- For iOS:
yarn ios --open - For Android:
yarn android --open
Summary
The expo-firebase-starter is a convenient template for developers who want to quickly get started with Expo + Firebase projects. It provides a range of features, including Firebase integration, navigation support, custom components, and email authentication. With its easy installation process and comprehensive documentation, developers can jumpstart their projects and save valuable development time.