Suyash Khanzode
Suyash Khanzode

Reputation: 1

React Native firebase messaging

import { initializeApp } from 'firebase/app';
import { getAuth, signInWithPhoneNumber, PhoneAuthProvider,signInWithCredential } from 'firebase/auth';
import { getMessaging } from 'firebase/messaging';

const firebaseConfig = {
This is config
};

const app = initializeApp(firebaseConfig);
const messaging = getMessaging(app); // problem is on this line
const auth = getAuth(app);

export { auth, signInWithPhoneNumber, PhoneAuthProvider,signInWithCredential,messaging};`

It is showing this error TypeError: Cannot read property 'addEventListener' of undefined

Upvotes: 0

Views: 22

Answers (0)

Related Questions