Skip to content

Commit 549a0e5

Browse files
authored
[v6] Implement Cloud Storage (invertase#2043)
See the changelog for detailed changes.
1 parent e7649ad commit 549a0e5

File tree

3 files changed

+56
-4
lines changed

3 files changed

+56
-4
lines changed

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ buildscript {
44
jcenter()
55
}
66
dependencies {
7-
classpath 'com.android.tools.build:gradle:3.3.2'
7+
classpath 'com.android.tools.build:gradle:3.4.0'
88
}
99
}
1010

ios/RNFBFirestore.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
s.platform = :ios, "10.0"
1717
s.source_files = 'RNFBFirestore/**/*.{h,m}'
1818
s.dependency 'React'
19-
s.dependency 'Firebase/Core', '~> 5.19.0'
19+
s.dependency 'Firebase/Core', '~> 5.20.2'
2020
s.dependency 'RNFBApp'
2121
s.static_framework = true
2222
end

lib/index.d.ts

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,66 @@ import {
2222
} from '@react-native-firebase/app-types';
2323

2424
/**
25-
* Firestore
25+
* Firebase Cloud Firestore package for React Native.
26+
*
27+
* #### Example 1
28+
*
29+
* Access the firebase export from the `firestore` package:
30+
*
31+
* ```js
32+
* import { firebase } from '@react-native-firebase/firestore';
33+
*
34+
* // firebase.firestore().X
35+
* ```
36+
*
37+
* #### Example 2
38+
*
39+
* Using the default export from the `firestore` package:
40+
*
41+
* ```js
42+
* import firestore from '@react-native-firebase/firestore';
43+
*
44+
* // firestore().X
45+
* ```
46+
*
47+
* #### Example 3
48+
*
49+
* Using the default export from the `app` package:
50+
*
51+
* ```js
52+
* import firebase from '@react-native-firebase/app';
53+
* import '@react-native-firebase/firestore';
54+
*
55+
* // firebase.firestore().X
56+
* ```
2657
*
2758
* @firebase firestore
2859
*/
2960
export namespace Firestore {
3061
export interface Statics {}
3162

32-
export interface Module extends ReactNativeFirebaseModule {
63+
/**
64+
* The Firebase Cloud Firestore service is available for the default app or a given app.
65+
*
66+
* #### Example 1
67+
*
68+
* Get the firestore instance for the **default app**:
69+
*
70+
* ```js
71+
* const firestoreForDefaultApp = firebase.firestore();
72+
* ```
73+
*
74+
* #### Example 2
75+
*
76+
* Get the firestore instance for a **secondary app**:
77+
*
78+
* ```js
79+
* const otherApp = firebase.app('otherApp');
80+
* const firestoreForOtherApp = firebase.firestore(otherApp);
81+
* ```
82+
*
83+
*/
84+
export class Module extends ReactNativeFirebaseModule {
3385

3486
}
3587
}

0 commit comments

Comments
 (0)