Closed khuongphp closed 4 years ago
Please add a check when you display the sign in button. Only display it if the device has iOS 13 or above:
` renderAppleSigninButton = () => {
const majorVersionIOS = parseInt(Platform.Version, 10);
console.log('ios version is', majorVersionIOS)
if (majorVersionIOS <= 12) {
return null
}
return (
<View>
<View>
<Text style={styles.ortext}>OR</Text>
</View>
<View style={{
justifyContent: 'center',
alignItems: 'center',
marginTop: 20
}}>
{SignInWithAppleButton(styles.appleBtn, this.appleSignIn)}
</View>
</View>
)
} `
As in this description
1. Sign in with Apple is supportable from XCode 11 and iOS 13. Although you can install XCode 11 on Mac Mojave 10.14.14 and later.
I think we need some check in this function like this