expo-native-firebase icon indicating copy to clipboard operation
expo-native-firebase copied to clipboard

App crashed when using firebase.firestore.FieldValue.serverTimestamp()

Open vsyw opened this issue 5 years ago • 0 comments

When use firebase.firestore.FieldValue.serverTimestamp(), the app would be terminated by Xcode with an error message "libc++abi.dylib: terminating with uncaught exception of type NSException ", and it looks like there is a type error in EXFirebaseFirestoreDocumentReference.m at #422,

NSString *string = (NSString *) value;

but value is NSDictionary instead of NSString, so when modified #422 to

NSString *string = (NSString *) value[typeKey];

it works fine.

vsyw avatar Jan 30 '19 12:01 vsyw