Skip to content

Commit 13b7824

Browse files
Update README.md (#218)
Add note about RNFirebase to README
1 parent 93e608f commit 13b7824

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,29 @@ Running `yarn build` inside of an expo module workspace will start watch mode fo
114114
| ^51.0.0 | ^2.0.0 |
115115
| ^52.0.0 | ^3.0.0 |
116116

117+
### React Native Firebase
118+
When using React Native MLKit alongside React Native Firebase, you may encounter dependency conflicts with the underlying Google libraries. This occurs because Firebase requires newer versions of shared dependencies than those used by Google's MLKit SDK.
119+
120+
#### Specific conflicts:
121+
- React Native Firebase needs GoogleDataTransport ~> 10.0 and GoogleUtilities ~> 8.0
122+
- MLKit uses GoogleDataTransport ~> 3.2 or ~> 8.0 and GoogleUtilities ~> 6.0
123+
124+
#### Solutions
125+
126+
1. For standard React Native projects:
127+
```
128+
# In your Podfile
129+
pod 'GoogleDataTransport', '~> 10.0'
130+
pod 'GoogleUtilities', '~> 8.0'
131+
```
132+
133+
2. For Expo projects:
134+
Use a config plugin or expo-build-properties to override the pod versions.
135+
136+
3. Alternative: Consider downgrading React Native Firebase to a version with compatible dependencies.
137+
138+
We're tracking this issue and will update when Google releases compatible versions of their SDK components.
139+
117140
## Contributors
118141

119142
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->

0 commit comments

Comments
 (0)