Hi all,
I am trying to add analytics to my expo project using android device and Managed Workflow Setup.
But I an gettiung this error
TypeError: _firebase.default.analytics is not a function
import ‘firebase/firestore’;
import * as Analytics from ‘expo-firebase-analytics’;
// Your web app’s Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
LogBox.ignoreLogs([‘Setting a timer’]);
// Initialize Firebase
if (firebase.apps.length === 0) {
firebase.initializeApp(firebasConfig);
firebase.analytics();
}