Giter VIP home page Giter VIP logo

reactnativefirebasestarter's Introduction


A basic react native app based off the starter code from (https://github.com/invertase/react-native-firebase)


Getting Started

1) Clone & Install Dependencies

  • 1.1) git clone https://github.com/corbinbalzan/ReactNativeFirebaseStarter.git
  • 1.2) cd reactnativefirebasestarter - cd into your newly created project directory.
  • 1.3) npm install --save
  • 1.4) react-native link

2) Rename Project

You will need to be running Node version 7.6 or greater for the rename functionality to work

  • 2.1) npm run rename - you'll be prompted to enter a project name and company name

3) [iOS] Install Pods

  • 3.1) cd ios and run pod install - if you don't have CocoaPods you can follow these instructions to install it.

4) Add Google Services files (plist & JSON)

  • 4.1) [iOS] Follow the add firebase to your app instructions here to generate your GoogleService-Info.plist file if you haven't done so already - use the package name generated previously as your iOS bundle ID.
  • 4.2) [iOS] Place this file in the ios/ directory of your project.
    • Once added to the directory, add the file to your Xcode project using 'File > Add Files to "[YOUR APP NAME]"โ€ฆ' and selecting the plist file.
  • 4.3) [Android] Follow the manually add firebase to your app instructions here to generate your google-services.json file if you haven't done so already - use the package name generated previously as your Android package name.
  • 4.4) [Android] Place this file in the android/app/ directory of your project.

On xcode projects add additional command below to generate the main jsbundle if you'te getting a bundle error

npm run build:ios

After all the setup make sure to open up the .xcworkspace not the .xcodeproj in Xcode

Error Notes:

Pod related errors:

pod install

npm install error

rm -r node_modules
npm cache clean --force
npm install

questions? contatct: [email protected]

reactnativefirebasestarter's People

Contributors

corbinbalzan avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.