forked from invertase/react-native-firebase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtype-test.ts
32 lines (25 loc) · 805 Bytes
/
type-test.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import firebase from '@react-native-firebase/app';
import * as iid from '@react-native-firebase/iid';
// tslint:disable-next-line:no-duplicate-imports
import iidExport from '@react-native-firebase/iid';
console.log(iidExport().app);
// checks module exists at root
console.log(firebase.iid().app.name);
// checks module exists at app level
console.log(firebase.app().iid().app.name);
// checks statics exist
console.log(firebase.iid.SDK_VERSION);
// checks statics exist on defaultExport
console.log(iid.firebase.SDK_VERSION);
// checks root exists
console.log(firebase.SDK_VERSION);
// checks multi-app support exists
console.log(firebase.iid(firebase.app()).app.name);
firebase
.iid()
.get()
.then(str => str.length);
firebase
.iid()
.getToken('foo', 'bar')
.then(str => str.length);