button
npm install rn-google-pay-button-only``sh`
npm install rn-google-pay-button-only
Usage
`js
import GooglePayImage from 'rn-google-pay-button-only';
// wrap with
onPress={() => console.log('Pressed')}
>
;
const styles = StyleSheet.create({
box: {
width: 228,
height: 60,
},
});
`
`js``
type RnGooglePayButtonOnlyProps = {
type: payButtonType,
style: ViewStyle,
};
| payButtonType |
| ----------------- |
| PAY_WITH |
| SHADOW_PAY_WITH |
| BUY_WITH |
| SHADOW_BUY_WITH |
| GOOGLE_PAY |
| SHADOW_GOOGLE_PAY |
| GOOGLE_PAY_PLAIN_DARK |
- This is a button only component and does not contain any logic to handle payment process.
- Android only
We obtained the assets from the Google Pay brand's static resources.Refer to the website link for further details.
https://developers.google.com/pay/api/android/guides/resources/payment-button-static-assets
MIT
---
Made with create-react-native-library