mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-23 20:10:05 +08:00
[js] Couple of additional checks for module existence
This commit is contained in:
@@ -211,7 +211,7 @@ export default class Database extends Base {
|
||||
}
|
||||
|
||||
export const statics = {
|
||||
ServerValue: {
|
||||
ServerValue: FirebaseDatabase ? {
|
||||
TIMESTAMP: FirebaseDatabase.serverValueTimestamp || { '.sv': 'timestamp' },
|
||||
},
|
||||
} : {},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user