google-pay / google-pay/react-native-make-payment

Feature Request: Add loader prop to <GooglePayButton> component

Open
#50 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Kotlin
Stars
63
Forks
23
Avg merge
2d 8h
Merged PRs (30d)
5

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the GooglePayButton component and its existing props, then inspect how its press and payment-processing states are handled. Define whether loading and loader are both required, implement the agreed loading behavior, and verify that the button prevents repeated taps while the custom or default indicator is displayed.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native
Domain
mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.