Skip to content

Releases: invertase/react-native-firebase

v3.3.0

06 Mar 17:20
Compare
Choose a tag to compare

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

Analytics

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

24 Feb 05:58
Compare
Choose a tag to compare

v3.2.7 Changelog

v3.2.6

22 Feb 15:57
Compare
Choose a tag to compare

v3.2.6 Changelog

Remote Config

  • Remove error log from RNFirebaseRemoteConfig #836 @skovhus

Types

Thanks to everybody for the feedback on our flow type changes. We've made a couple of tweaks to prevent internal errors from filtering through to your apps.

v3.2.5

14 Feb 15:19
Compare
Choose a tag to compare

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 and UserMetadata

  • Database: DataSnapshot, OnDisconnect, Reference, Query as DataQuery

  • Firestore: CollectionReference, DocumentChange, DocumentListenOptions, DocumentReference, DocumentSnapshot, FieldPath, FieldValue, GeoPoint, Query, QueryListenOptions, QuerySnapshot, SetOptions, SnapshotMetadata and WriteBatch

  • 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

01 Feb 09:07
Compare
Choose a tag to compare

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

30 Jan 17:25
Compare
Choose a tag to compare

v3.2.3 Changelog

Auth

  • Breaking Remove undocumented and unusable getCurrentUser - replace with firebase.auth().currentUser instead
  • Add support for languageCode to Auth class #655
  • Add missing createUserAndRetrieveDataWithEmailAndPassword, signInAndRetrieveDataWithCredential, signInAndRetrieveDataWithCustomToken, signInAndRetrieveDataWithEmailAndPassword and signInAnonymouslyAndRetrieveData methods to Auth class.
  • Deprecated The equivalent createUserWithEmailAndPassword, signInAndRetrieveDataWithCredential, signInAndRetrieveDataWithCustomToken, signInAndRetrieveDataWithEmailAndPassword and signInAnonymouslyAndRetrieveData methods have been deprecated and will be removed in a future version.
  • Add missing verifyPasswordResetCode method to Auth class
  • Add missing metadata property to User class
  • Add missing linkAndRetrieveDataWithCredential and reauthenticateAndRetrieveDataWithCredential to User class.
  • Deprecated The equivalent linkWithCredential and reauthenticateWithCredential methods have been deprecated and will be removed in a future version.
  • Add OAuthProvider and OAuthCredential

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

  • [ios] Fix possible crash with short links #750
  • [ios] Fix attempting to insert nil #726

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

12 Jan 09:26
Compare
Choose a tag to compare

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:

  1. Select the RNFirebase.xcodeproj library in the Xcode navigator
  2. Select the Build Phases tab
  3. 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

15 Dec 17:44
Compare
Choose a tag to compare

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-run pod install.
  • Android:
    • Re-build android app via Android Studio or react-native run-android

v3.1.1

28 Nov 16:29
Compare
Choose a tag to compare

v3.1.1 Changelog

Auth

  • Fix issue with confirmPasswordReset, applyActionCode and checkActionCode 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 just traceWithName #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

06 Nov 17:35
Compare
Choose a tag to compare

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 with content:// 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-run pod install.
  • Android:
    • Re-build android app via Android Studio or react-native run-android