mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-01-12 17:42:24 +08:00
fix: boolean
This commit is contained in:
@@ -192,7 +192,7 @@ export function parseSnapshotArgs(args) {
|
||||
* .onSnapshot(SnapshotListenOptions, ...
|
||||
*/
|
||||
if (isObject(args[0]) && !isPartialObserver(args[0])) {
|
||||
snapshotListenOptions.includeMetadataChanges = args[0].includeMetadataChanges;
|
||||
snapshotListenOptions.includeMetadataChanges = Boolean(args[0].includeMetadataChanges);
|
||||
if (isFunction(args[1])) {
|
||||
/**
|
||||
* .onSnapshot(SnapshotListenOptions, Function);
|
||||
|
||||
Reference in New Issue
Block a user