1yarn add @invertase/react-native-apple-authentication
2
3(cd ios && pod install)
1// App.js
2
3import React from 'react';
4import { View } from 'react-native';
5import { AppleButton } from '@invertase/react-native-apple-authentication';
6
7async function onAppleButtonPress() {
8
9}
10
11function App() {
12 return (
13 <View>
14 <AppleButton
15 buttonStyle={AppleButton.Style.WHITE}
16 buttonType={AppleButton.Type.SIGN_IN}
17 style={{
18 width: 160, // You must specify a width
19 height: 45, // You must specify a height
20 }}
21 onPress={() => onAppleButtonPress()}
22 />
23 </View>
24 );
25}