File tree 4 files changed +12
-4
lines changed
4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @firebase/firestore " : patch
3
+ ---
4
+
5
+ Change the networking API to use XHR instead of ` fetch() ` for ReactNative.
Original file line number Diff line number Diff line change 20
20
"dev" : " rollup -c -w" ,
21
21
"lint" : " eslint -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'" ,
22
22
"lint:fix" : " eslint --fix -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'" ,
23
- "prettier" : " prettier --write '*.js' '*.ts' ' @(lite|src|test)/**/*.ts'" ,
23
+ "prettier" : " prettier --write '*.js' '@(lite|src|test)/**/*.ts'" ,
24
24
"test:lite" : " node ./scripts/run-tests.js --emulator --platform node_lite --main=lite/index.ts 'test/lite/**/*.test.ts'" ,
25
25
"test:lite:prod" : " node ./scripts/run-tests.js --platform node_lite --main=lite/index.ts 'test/lite/**/*.test.ts'" ,
26
26
"test:lite:browser" : " karma start --single-run --lite" ,
Original file line number Diff line number Diff line change 17
17
18
18
import { registerFirestore } from './register' ;
19
19
20
- registerFirestore ( 'rn' ) ;
20
+ registerFirestore ( 'rn' , /* useFetchStreams= */ false ) ;
21
21
22
22
export * from './api' ;
Original file line number Diff line number Diff line change @@ -29,7 +29,10 @@ import { setSDKVersion } from '../src/core/version';
29
29
import { Firestore } from './api/database' ;
30
30
import { PrivateSettings } from './lite-api/settings' ;
31
31
32
- export function registerFirestore ( variant ?: string ) : void {
32
+ export function registerFirestore (
33
+ variant ?: string ,
34
+ useFetchStreams = true
35
+ ) : void {
33
36
setSDKVersion ( SDK_VERSION ) ;
34
37
_registerComponent (
35
38
new Component (
@@ -42,7 +45,7 @@ export function registerFirestore(variant?: string): void {
42
45
container . getProvider ( 'auth-internal' )
43
46
)
44
47
) ;
45
- settings = { useFetchStreams : true , ...settings } ;
48
+ settings = { useFetchStreams, ...settings } ;
46
49
firestoreInstance . _setSettings ( settings ) ;
47
50
return firestoreInstance ;
48
51
} ,
You can’t perform that action at this time.
0 commit comments