Releases: invertase/react-native-firebase
v3.3.0
v3.3.0 Changelog
TL;DR: Main focus of this release is Cloud Firestore Transaction support + minor bug fixes and SDK version upgrades.
Cloud Firestore
firestore.runTransaction()
- Implemented transaction support
Analytics
analytics.logEvent()
- added additional argument validations (fixes #846)
Auth
- Add missing
reauthenticateAndRetrieveDataWithCredential
native methods
Crashlytics
- [android] updated Crashlytics native SDK to v2.9.1
Other
- [internals] remove bows logger dependency + window shims (fixes #858)
v3.2.7
v3.2.6
v3.2.5
v3.2.5 Changelog
Types, types and more types
We've added better support for Flow by exporting the following types:
-
Core:
App
-
Auth:
ActionCodeInfo
,ActionCodeSettings
,AdditionalUserInfo
,AuthCredential
,ConfirmationResult
,User
,UserCredential
,UserInfo
andUserMetadata
-
Database:
DataSnapshot
,OnDisconnect
,Reference
,Query
asDataQuery
-
Firestore:
CollectionReference
,DocumentChange
,DocumentListenOptions
,DocumentReference
,DocumentSnapshot
,FieldPath
,FieldValue
,GeoPoint
,Query
,QueryListenOptions
,QuerySnapshot
,SetOptions
,SnapshotMetadata
andWriteBatch
-
We will add types for the other modules as we tidy them up.
You can import a type by doing the following:
import type { App } from 'react-native-firebase';
Feedback
At the moment, we're building and bundling the Flow types alongside our source code as part of the npm module. This makes it easier to keep up to date, but does cause some issues with different versions of Flow.
Another approach would be to start exporting libdefs to the flow-typed
repository. This is a bit more involved and requires that you set up flow-typed
in your projects, but would allow us to be a bit more flexible with the flow types and hide some of the internals.
So what do you think? Please let us know over on Discord: https://discord.gg/C9aK28N
v3.2.4
v3.2.4 Changelog
Admob
- Fix incorrectly reporting that the admob native module is not installed
Miscellaneous
- Added some missing auth, core and firestore Typescript typings
- Updated the flowconfig to hide an uncaught RN type error
v3.2.3
v3.2.3 Changelog
Auth
- Breaking Remove undocumented and unusable
getCurrentUser
- replace withfirebase.auth().currentUser
instead - Add support for
languageCode
toAuth
class #655 - Add missing
createUserAndRetrieveDataWithEmailAndPassword
,signInAndRetrieveDataWithCredential
,signInAndRetrieveDataWithCustomToken
,signInAndRetrieveDataWithEmailAndPassword
andsignInAnonymouslyAndRetrieveData
methods toAuth
class. - Deprecated The equivalent
createUserWithEmailAndPassword
,signInAndRetrieveDataWithCredential
,signInAndRetrieveDataWithCustomToken
,signInAndRetrieveDataWithEmailAndPassword
andsignInAnonymouslyAndRetrieveData
methods have been deprecated and will be removed in a future version. - Add missing
verifyPasswordResetCode
method toAuth
class - Add missing
metadata
property toUser
class - Add missing
linkAndRetrieveDataWithCredential
andreauthenticateAndRetrieveDataWithCredential
toUser
class. - Deprecated The equivalent
linkWithCredential
andreauthenticateWithCredential
methods have been deprecated and will be removed in a future version. - Add
OAuthProvider
andOAuthCredential
Core
- Add missing SDK_VERSION property
Database
- Fix wrong path being returned by SnapshotReference #679
Firestore
- Add FieldPath support
- Fix issues when specifying
false
query options
Links
Messaging
- [ios] Fix for
show_in_foreground
flag #740
Storage
- [ios] Fix storage compilation warnings #730
Miscellaneous
- Better Typescript support, including better types for Auth, Firestore and Links. Big thanks to @pheromonez and @danielw93 for their ongoing help here.
- Validate Typescript files before release #784
- Various Flow type fixes.
- Setup Prettier and enable as a pre-commit hook.
v3.2.2
v3.2.2 Changelog
IMPROVED - iOS use_frameworks!
support
Although use_frameworks!
was working in the simplest cases, there were still some issues if it was used in a project that had React
installed as a Pod rather than as a linked library.
This release adds some additional search paths to better support this use case. You will also need to make the following changes:
- Select the RNFirebase.xcodeproj library in the Xcode navigator
- Select the Build Phases tab
- Under Link Binary With Libraries, add the Pods_{projectName}.framework file
This will ensure that the Pods are built before react-native-firebase
and the headers are available for it to build successfully.
v3.2.0
v3.2.0 Changelog
NEW - Crashlytics
- We now have support for Crashlytics for both android and iOS, check out the docs for more info.
BREAKING - iOS and Cocoapods
Due to changes in React Native 0.50.0, react-native link
wasn't working properly with react-native-firebase on iOS (more info here). To resolve these issues we have moved the Podspec
file to the ios
directory.
If you are using react-native-firebase
as a Pod (which is no longer our recommended approach) you will have to update the definition in your Podfile to:
pod 'RNFirebase', :path => '../../ios/RNFirebase.podspec'
NEW - iOS use_frameworks!
support
In the past there have been issues with using react-native-firebase
when use_frameworks!
is set in your Podfile. Going forward, this is now supported but only if have linked using react-native link
and not if you are specifying react-native-firebase
in your Podfile.
Defining react-native-firebase
in your Podfile is no longer our recommended approach, so we suggest you remove references to it from your Podfile and run react-native link react-native-firebase
instead.
NOTE: We still recommend installing the underlying Firebase SDKs using Cocoapods as specified in our installation instructions
Auth
- Added support for state in email actions #611
Other
- The location of Typescript typings has been fixed
- Miscellaneous Flow type fixes
Upgrading from v3.1.x
- Install latest version from npm / yarn:
npm install react-native-firebase@latest
- iOS:
- Remove your
ios/Pods
directory and re-runpod install
.
- Remove your
- Android:
- Re-build android app via Android Studio or
react-native run-android
- Re-build android app via Android Studio or
v3.1.1
v3.1.1 Changelog
Auth
- Fix issue with
confirmPasswordReset
,applyActionCode
andcheckActionCode
not handling specific app instances - Add missing phoneNumber property
- [ios]
updatePassword
not correctly using the app instance
Database
- Add
firebase.database.enableLogging
- Add
firebase.database().setPersistenceCacheSizeBytes
- Make sure the promise is resolved/rejected for transactions
Firestore
- Add
firebase.firestore.enableLogging
Performance
- Trace incorrectly calling
startTraceWithName
instead of justtraceWithName
#593
Misc
- Add support for using Firebase without Cocoapods (not recommended)
- Get flow types working again - auth, app and firestore are correctly typed. Other modules may be out of date
v3.1.0
v3.1.0 Changelog
NEW - Dynamic Links
- We now officially have support for Dynamic Links for both android and iOS, check out the docs for more info. @omer88
Firestore
- Full query support for startAt, startAfter, endAt and endAfter - including DocumentSnapshot - 2702795
- Correctly support dates, GeoPoints and other types in
where
clause - 6ae0049 - [ios] Correctly apply integer limits - d8fd09a
Storage
- [android] Fixed
putFile
issue withcontent://
paths - #572 - [ios] Fixed
RNFirebaseStorage.m
compilation issue - #570 - [android] Refactored to get upload progress to report total bytes correctly - cf93490 @peterdivvito
Other
We're now on Open Collective - see the readme section for or visit https://opencollective.com/react-native-firebase if you'd like to support ongoing development and maintenance of this library.
Upgrading from v3.0.x
- Install latest version from npm / yarn:
npm install react-native-firebase@latest
- iOS:
- Remove your
ios/Pods
directory and re-runpod install
.
- Remove your
- Android:
- Re-build android app via Android Studio or
react-native run-android
- Re-build android app via Android Studio or