Skip to content

Commit 4a300c5

Browse files
committed
docs(README): add 'forceStaticLinking' example to Expo install section
1 parent 6edab6f commit 4a300c5

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

docs/index.mdx

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,12 @@ To enable Firebase on the native Android and iOS platforms, create and download
4646

4747
For iOS only, since `firebase-ios-sdk` requires `use_frameworks` then you want to configure [`expo-build-properties`](https://docs.expo.dev/versions/latest/sdk/build-properties/#pluginconfigtypeios) `app.json` by adding `"useFrameworks": "static"`. See the example configuration below.
4848

49-
The following is an example `app.json` to enable the React Native Firebase modules App, Auth and Crashlytics, that specifies the Service Account files for both mobile platforms, and that sets the application ID to the example value of `com.mycorp.myapp` (change to match your own):
49+
The following is an example `app.json` to enable the React Native Firebase modules App, Auth and Crashlytics, that specifies the Service Account files for both mobile platforms, and that sets the application ID to the example value of `com.mycorp.myapp` (change to match your own).
50+
51+
You will need to add a plugin entry for each react-native-firebase module you use that defines an Expo config plugin - these are documented on the specific module install pages.
52+
53+
You must add every single react-native-firebase module you use to the `forceStaticLinking` - this allows the iOS build to work with the new react-native
54+
"prebuilt core" system in react-native 0.84+ and Expo 54+.
5055

5156
```json
5257
{
@@ -67,7 +72,19 @@ The following is an example `app.json` to enable the React Native Firebase modul
6772
"expo-build-properties",
6873
{
6974
"ios": {
70-
"useFrameworks": "static"
75+
"useFrameworks": "static",
76+
"forceStaticLinking": [
77+
"RNFBAnalytics",
78+
"RNFBApp",
79+
"RNFBAppCheck",
80+
"RNFBAuth",
81+
"RNFBCrashlytics",
82+
"RNFBFirestore",
83+
"RNFBMessaging",
84+
"RNFBRemoteConfig",
85+
"RNFBStorage",
86+
"RNFBSomeOtherRNFBModuleYouAreUsing"
87+
]
7188
}
7289
}
7390
]

0 commit comments

Comments
 (0)