expo-fire-native

0.7.0 • Public • Published

Expo + Firebase Auth + NativeBase + TypeScript Starter Kit

This is a boilerplate for starting an Expo project with Login/Register flows ready

Features

Usage

Run the following command to generate a new Expo repo using this template:

expo init -t expo-fire-native

Feel free to update or remove top entires in your package.json before starting :)

Requirement

Firebase Setup

Set up a Firebase project in Firebase Console and put the configurations in the root .env file like this:

FIREBASE_APP_ID="app-id"
FIREBASE_API_KEY="api-key"
FIREBASE_AUTH_DOMAIN="project-id.firebaseapp.com"
FIREBASE_DATABASE_URL="https://project-id.firebaseio.com"
FIREBASE_PROJECT_ID="project-id"
FIREBASE_STORAGE_BUCKET="project-id.appspot.com"
FIREBASE_MESSAGING_SENDER_ID="sender-id"

Add Email/Password Sign-in provider in Firebase Authentication.

Development

Getting Started

We are using Yarn as our package manager.

Starting development in web:

yarn web

Starting development in iOS Simulator (xcode is required)

yarn ios

Starting development in Android Simulator (AndroidStudio is required)

yarn android

Useful Helpers

Use translations (i18n):

import { t } from '../utils';
<Text>{t('login.title')}</Text>

All the translations are under /locales folder.

Testing

Full tests with coverage (threshold 50%):

yarn test

Active development of tests, watch files for changes

yarn test:dev

Dependencies

Package Description
native-base UI Library
i18n-js and expo-localization Localization support
react-native-dotenv For environment variables override
firebase Authentication
Yup and Formik Form and data validator
eslint, prettier, jest Productivity

Package Sidebar

Install

npm i expo-fire-native

Weekly Downloads

0

Version

0.7.0

License

MIT

Unpacked Size

217 kB

Total Files

63

Last publish

Collaborators

  • hivivo