The available props for the AppleButton
react component.
import React from 'react';
import { View } from 'react-native';
import { AppleButton } from '@invertase/react-native-apple-authentication';
function App() {
return (
<View>
<AppleButton
style={styles.appleButton}
cornerRadius={5}
buttonStyle={AppleButton.Style.BLACK}
buttonType={AppleButton.Type.SIGN_IN}
onPress={() => onAppleButtonPress()}
/>
</View>
);
}
const styles = StyleSheet.create({
appleButton: {
width: 200,
height: 60,
margin: 10,
},
});
• buttonStyle? : AppleButtonStyle
Defined in lib/index.d.ts:175
See @{RNAppleAuth.AppleButtonStyle}
• buttonType? : AppleButtonType
Defined in lib/index.d.ts:180
See @{RNAppleAuth.AppleButtonType}
• cornerRadius? : undefined | number
Defined in lib/index.d.ts:185
Corner radius of the button.