Skip to content

Latest commit

 

History

History
71 lines (48 loc) · 1.74 KB

_lib_index_d_.rnappleauth.applebuttonprops.md

File metadata and controls

71 lines (48 loc) · 1.74 KB

Interface: AppleButton

The available props for the AppleButton react component.

What is it?

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,
  },
});

Index

Properties

Properties

Optional buttonStyle

buttonStyle? : AppleButtonStyle

Defined in lib/index.d.ts:175

See @{RNAppleAuth.AppleButtonStyle}


Optional buttonType

buttonType? : AppleButtonType

Defined in lib/index.d.ts:180

See @{RNAppleAuth.AppleButtonType}


Optional cornerRadius

cornerRadius? : undefined | number

Defined in lib/index.d.ts:185

Corner radius of the button.