[db] Correctly named module for statics

This commit is contained in:
Chris Bianca 2017-08-25 17:37:52 +01:00
parent ec6d91b6e8
commit d5de6a5b21
1 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ export default class Database extends ModuleBase {
}
export const statics = {
ServerValue: NativeModules.FirebaseDatabase ? {
TIMESTAMP: NativeModules.FirebaseDatabase.serverValueTimestamp || { '.sv': 'timestamp' },
ServerValue: NativeModules.RNFirebaseDatabase ? {
TIMESTAMP: NativeModules.RNFirebaseDatabase.serverValueTimestamp || { '.sv': 'timestamp' },
} : {},
};