File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,30 @@ Select the downloaded `GoogleService-Info.plist` file from your computer, and en
174
174
175
175
![ Select 'Copy Items if needed'] ( https://prismic-io.s3.amazonaws.com/invertase%2F7d37e0ce-3e79-468d-930c-b7dc7bc2e291_unknown+%282%29.png )
176
176
177
- #### Configure Firebase with iOS credentials
177
+ #### Configure Firebase with iOS credentials (react-native 0.77+)
178
+
179
+ To allow Firebase on iOS to use the credentials, the Firebase iOS SDK must be configured during the bootstrap phase of your application.
180
+
181
+ To do this, open your ` /ios/{projectName}/AppDelegate.swift ` file and add the following:
182
+
183
+ At the top of the file, import the Firebase SDK right after ` 'import ReactAppDependencyProvider' ` :
184
+
185
+ ```
186
+ import Firebase
187
+ ```
188
+
189
+ Within your existing ` didFinishLaunchingWithOptions ` method, add the following to the top of the method:
190
+
191
+ ```
192
+ override func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
193
+ // Add me --- \/
194
+ FirebaseApp.configure()
195
+ // Add me --- /\
196
+ // ...
197
+ }
198
+ ```
199
+
200
+ #### Configure Firebase with iOS credentials (react-native < 0.77)
178
201
179
202
To allow Firebase on iOS to use the credentials, the Firebase iOS SDK must be configured during the bootstrap phase of your application.
180
203
You can’t perform that action at this time.
0 commit comments