Javascript 为什么我会得到Can';在本机ios Facebook登录中找不到变量:GlobalStore
我在我的React原生应用程序中使用以下模块,以便使用Facebook登录用户 我记录了以下问题。 我的视图中有以下内容,我得到了GlobalStore找不到错误Javascript 为什么我会得到Can';在本机ios Facebook登录中找不到变量:GlobalStore,javascript,reactjs,react-native,Javascript,Reactjs,React Native,我在我的React原生应用程序中使用以下模块,以便使用Facebook登录用户 我记录了以下问题。 我的视图中有以下内容,我得到了GlobalStore找不到错误 var FBSDKLogin = require('react-native-fbsdklogin'); //init facebook login fbTouchHandler(event) { FBSDKLoginManager.setLoginBehavior(GlobalStore.getItem('behav
var FBSDKLogin = require('react-native-fbsdklogin');
//init facebook login
fbTouchHandler(event) {
FBSDKLoginManager.setLoginBehavior(GlobalStore.getItem('behavior', 'native'));
FBSDKLoginManager.logInWithReadPermissions([], (error, result) => {
if (error) {
alert('Error logging in.');
} else {
if (result.isCancelled) {
alert('Login cancelled.');
} else {
alert('Logged in.');
}
}
});
}