mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-07 22:41:04 +08:00
1.1 KiB
1.1 KiB
title, description
| title | description |
|---|---|
| iOS Initialization | Initialization Firebase with iOS. |
iOS Manual Linking
The following steps are only required if your environment does not have access to React Native auto-linking.
Add on Podfile.lock
ios/Podfile
We recommend using a minimum platform version of at least 9.0 for your application to ensure that the correct version of the Firebase libraries are used, so make sure platform :ios, '9.0 is present at the top of your file. Also add RNFBApp pods inside your target.
platform :ios, '9.0'
//...
target 'yourApp' do
//...
pod 'RNFBApp', :path => '../node_modules/@react-native-firebase/app'
end
Run pod install
You need to use the
ios/[YOUR APP NAME].xcworkspaceinstead of theios/[YOUR APP NAME].xcprojfile from now on.
Add App to AppDelegate.m
ios/{yourApp}/AppDelegate.m
A) At the top of the file:
#import <Firebase.h>
B) At the beginning of the didFinishLaunchingWithOptions:(NSDictionary *)launchOptions method add the following line:
[FIRApp configure];