How to use the @react-native-firebase/common.generateFirestoreId function in @react-native-firebase/common

To help you get started, we’ve selected a few @react-native-firebase/common 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 invertase / react-native-firebase / packages / messaging / lib / RemoteMessageBuilder.js View on Github external
constructor(messagingSenderId) {
    super();
    this.set('data', {});
    this.set('ttl', 3600);
    this.set('messageId', generateFirestoreId());

    if (messagingSenderId) {
      this.set('to', `${messagingSenderId}@fcm.googleapis.com`);
    }
  }