File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
packages/database/lib/modular Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { getApp } from '@react-native-firebase/app' ;
2
+ import DatabaseStatics from '../DatabaseStatics' ;
3
+
4
+ const { ServerValue } = DatabaseStatics ;
2
5
3
6
/**
4
7
* @typedef {import("..").FirebaseApp } FirebaseApp
@@ -109,15 +112,15 @@ export function getServerTime(db) {
109
112
* @returns {object }
110
113
*/
111
114
export function serverTimestamp ( ) {
112
- return firebase . database . ServerValue . TIMESTAMP ;
115
+ return ServerValue . TIMESTAMP ;
113
116
}
114
117
115
118
/**
116
119
* @param {number } delta
117
120
* @returns {object }
118
121
*/
119
122
export function increment ( delta ) {
120
- return firebase . database . ServerValue . increment ( delta ) ;
123
+ return ServerValue . increment ( delta ) ;
121
124
}
122
125
123
126
export * from './query' ;
You can’t perform that action at this time.
0 commit comments