How to use the react-native-firebase.iid function in react-native-firebase

To help you get started, we’ve selected a few react-native-firebase examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pillarwallet / pillarwallet / src / actions / authActions.js View on Github external
return async (dispatch: Dispatch) => {
    Intercom.logout();
    navigate(NavigationActions.navigate({ routeName: ONBOARDING_FLOW }));
    dispatch({ type: LOG_OUT });
    dispatch({ type: UPDATE_APP_SETTINGS, payload: {} });
    chat.client.resetAccount().catch(() => null);
    clearWebViewCookies();
    await firebase.iid().delete().catch(() => {});
    await AsyncStorage.removeItem(WALLET_STORAGE_BACKUP_KEY);
    await storage.removeAll();
  };
};