Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6212

TypeError: undefined is not an object (evaluating '_ExponentFacebook.default.initializeAsync')

$
0
0

I am trying to use Facebook Auth for my firebase react native project and I am running into this TypeError at the InitalizeAsync method.

import * as Facebook from 'expo-facebook';export const loginWithFacebook = async () => {  await Facebook.initializeAsync('ID_OF_APP');  const {type, token}: any = await Facebook.logInWithReadPermissionsAsync({    permissions: ['public_profile', 'email'],  });

I've been trying to troubleshoot this for the last day or so.

ID_OF_APP is only in the question...not my actual code (for the sake of making this question easier to understand to future viewers).


Viewing all articles
Browse latest Browse all 6212

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>