这是indexloc提供的服务,不要输入任何密码
Skip to content

Feature Request: Add loader prop to <GooglePayButton> component #50

@PAPatilDxl

Description

@PAPatilDxl

Is your feature request related to a problem? Please describe.
I'm currently integrating the in a React Native app. One common UX expectation is to provide user feedback (like a loading spinner) while the payment flow is initiating or in progress.

Right now, there's no built-in support for a loading indicator or loader prop on the button, which results in either:
The user tapping multiple times
Manual handling outside the component

Describe the solution you'd like
It would be great if the component accepted a loader prop (boolean or custom component), allowing developers to:
Show a spinner or progress indicator on top of the button
Customize the loader style if needed

<GooglePayButton
loading={isProcessing}
loader={}
/>

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Wrapping in a parent View and overlaying a loader manually
Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions