• PlatformPayButton Component. Display the platform-specific native wallet pay button: Apple Pay on iOS, and Google Pay on Android.

    Note: The native pay buttons require an explicit height specified in the style prop (e.g., { height: 48 } or { height: 50 }). Without an explicit height, the component collapses to 0 height.

    Parameters

    Returns Element

    JSX.Element

     <PlatformPayButton
    onPress={pay}
    type={PlatformPay.ButtonType.Subscribe}
    appearance={PlatformPay.ButtonStyle.WhiteOutline}
    borderRadius={4}
    disabled={!isApplePaySupported}
    style={{ height: 48 }}
    />