From c6468cd0174949367f47a184c70d3a4e9e03405f Mon Sep 17 00:00:00 2001 From: Yousef Date: Tue, 24 Oct 2017 12:41:19 +0200 Subject: [PATCH] Update typings to allow null values to clear Analytics values See https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics#setUserId(java.lang.String) --- index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.d.ts b/index.d.ts index 9272a526..1260e05b 100644 --- a/index.d.ts +++ b/index.d.ts @@ -392,7 +392,7 @@ declare module "react-native-firebase" { * it is recommended it is always sent as your current class name, * for example on Android it will always show as 'MainActivity' if not specified. */ - setCurrentScreen(screenName: string, screenClassOverride?: string): void + setCurrentScreen(screenName: string | null, screenClassOverride?: string): void /** * Sets the minimum engagement time required before starting a session. * The default value is 10000 (10 seconds) @@ -410,11 +410,11 @@ declare module "react-native-firebase" { * * firebase.analytics().setUserId(id); */ - setUserId(id: string): void + setUserId(id: string | null): void /** * Sets a key/value pair of data on the current user. */ - setUserProperty(name: string, value: string): void; + setUserProperty(name: string, value: string | null): void; [key: string]: any; }