Skip to content

Commit 811a92b

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

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/RNFBAuth.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 = 'RNFBAuth/**/*.{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-
* Auth
25+
* Firebase Authentication package for React Native.
26+
*
27+
* #### Example 1
28+
*
29+
* Access the firebase export from the `auth` package:
30+
*
31+
* ```js
32+
* import { firebase } from '@react-native-firebase/auth';
33+
*
34+
* // firebase.auth().X
35+
* ```
36+
*
37+
* #### Example 2
38+
*
39+
* Using the default export from the `auth` package:
40+
*
41+
* ```js
42+
* import auth from '@react-native-firebase/auth';
43+
*
44+
* // auth().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/auth';
54+
*
55+
* // firebase.auth().X
56+
* ```
2657
*
2758
* @firebase auth
2859
*/
2960
export namespace Auth {
3061
export interface Statics {}
3162

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

3486
}
3587
}

0 commit comments

Comments
 (0)