import React from 'react' ; import { AccessibilityProps , StyleProp , ViewStyle , requireNativeComponent , TouchableOpacity , StyleSheet , } from 'react-native' ; const GooglePayButtonNative = requireNativeComponent < any > ( 'GooglePayButton' ) ; /**
 *  Apple Pay Button Component Props
 */ export interface Props extends AccessibilityProps { style ? : StyleProp < ViewStyle > ; type ? : 'pay' | 'pay_shadow' | 'standard' | 'standard_shadow' ; onPress ( ) : void ; disabled ? : boolean ; testID ? : string ; } example param __namedParameters returns category export function GooglePayButton ( { type = 'pay' , onPress , disabled , ... props } ) { return ( < TouchableOpacity disabled = { disabled } activeOpacity = { 1 } onPress = { onPress } style = { disabled ? styles . disabled : { } } > < GooglePayButtonNative buttonType = { type } { ... props } /> < /TouchableOpacity>); } const styles = StyleSheet . create ( { disabled : { opacity : 0.3 , } , } ) ;