我目前正在为我的Reach Native应用程序设置Facebook身份验证.在react-native-fbsdk设置的常见问题之后,现在Facebook App Events工作并且LoginManager加载.
我的问题:授权后,LoginManager将我重定向回应用程序,然后显示错误:
登录失败
我正在使用非常标准的LoginManager实现:
const FBSDK = require('react-native-fbsdk');
const {
LoginManager,
AccessToken,
} = FBSDK;
export default class FacebookAuth extends Component {
facebook(){
LoginManager.logInWithReadPermissions(['public_profile', 'email']).then(
function(result) {
if (result.isCancelled) {
alert('Login cancelled');
} else {
alert('Login success with permissions: '
+result.grantedPermissions.toString());
}
},
function(error) {
alert('Login fail with error: ' + error);
}
);
Run Code Online (Sandbox Code Playgroud)
你有什么指示吗?
我已经检查过:
我正在运行:iOS 10和react-native 0.38.0.
谢谢!
我正在使用 Lottie 命令式 API 来显示循环动画。除了使用React Native Sound 的组件外,命令式 API 在我的所有组件上都运行良好。我认为问题是两个库都是用.play(). 这可能吗?
洛蒂:this.animation.play();
反应原生声音:this.sound.play()
调用 Lottie 方法后,我收到错误消息:
无法读取未定义的属性“播放”
有任何想法吗?
提前致谢。