File tree 3 files changed +56
-4
lines changed 3 files changed +56
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ buildscript {
4
4
jcenter()
5
5
}
6
6
dependencies {
7
- classpath ' com.android.tools.build:gradle:3.3.2 '
7
+ classpath ' com.android.tools.build:gradle:3.4.0 '
8
8
}
9
9
}
10
10
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
16
16
s . platform = :ios , "10.0"
17
17
s . source_files = 'RNFBFirestore/**/*.{h,m}'
18
18
s . dependency 'React'
19
- s . dependency 'Firebase/Core' , '~> 5.19.0 '
19
+ s . dependency 'Firebase/Core' , '~> 5.20.2 '
20
20
s . dependency 'RNFBApp'
21
21
s . static_framework = true
22
22
end
Original file line number Diff line number Diff line change @@ -22,14 +22,66 @@ import {
22
22
} from '@react-native-firebase/app-types' ;
23
23
24
24
/**
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
+ * ```
26
57
*
27
58
* @firebase firestore
28
59
*/
29
60
export namespace Firestore {
30
61
export interface Statics { }
31
62
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 {
33
85
34
86
}
35
87
}
You can’t perform that action at this time.
0 commit comments