react native messaging().subscribeToTopic() on the forground code example Example: react native firebase subscribe to topic subscribeToTopic(topic: string): Promise<void>;