2
は、だから私は招待ダイアログを表示するようにreact-native-fbsdkFBAppInviteDialog
を使用しようとしていますダイアログのエラーを誘うが、私はいつも私がSending App Invites in a React Native app反応するネイティブ・fbsdkアプリは
このエラーを取得しますあなたがしたい場合
は、ここに私のコード
constructor (props) {
super(props)
this.state = {
appInviteContent: {
applinkUrl: 'https://facebook.com'
}
}
}
_onPress =() => {
var tmp = this
AppInviteDialog.canShow(this.state.appInviteContent).then(
function (canShow) {
if (canShow) {
return AppInviteDialog.show(tmp.state.appInviteContent)
}
}
).then(
function (result) {
if (result.isCancelled) {
Alert.alert('Share cancelled')
} else {
Alert.alert('Share success with postId: ' + result.postId)
}
},
function (error) {
Alert.alert('Share fail with error: ' + error)
}
)
}