Skip to content

Feat(rnpsw): Add Demo Project #222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

Jokotoye18
Copy link

@Jokotoye18 Jokotoye18 commented Jul 29, 2025

Description

This pull request adds a demo project showcasing how to integrate and use the react-native-paystack-webview package.
The demo provides a working example for developers to quickly understand how to implement the library in their React Native apps.

Key features:

  • Basic payment flow using Paystack WebView
  • Sample UI with a "Pay" button
  • Clean, beginner-friendly structure with comments

Issue URL

N/A – This is a new feature contribution and not tied to any existing issue.

Before and After

Before After
Visual: N/A – There was no demo project previously.
Screenshot of library in action
Functionality: N/A Demo project added to showcase how to integrate and use react-native-paystack-webview. Includes basic payment flow and UI.

🎥 Watch the demo video on Imgur

@Jokotoye18 Jokotoye18 marked this pull request as draft July 29, 2025 14:17
Copy link
Author

@Jokotoye18 Jokotoye18 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@just1and0 this PR adds the demo project as described. Please review when you get a chance 🙏

@Jokotoye18 Jokotoye18 marked this pull request as ready for review July 29, 2025 14:21
@just1and0
Copy link
Owner

just1and0 commented Jul 29, 2025

Thank a lot @Jokotoye18 for working on this PR! I see how helpful this will be for the community. I'll review and revert.

Copy link
Owner

@just1and0 just1and0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making this update. I added some reviews.

demo/README.md Outdated
Comment on lines 149 to 157
## 🤝 Contributing

Feel free to contribute to improve the demo:

1. Fork the repository
2. Create a feature branch
3. Make your changes
4. Submit a pull request

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Jokotoye18 we have a contribution guideline, you can reference that here rather that listing a new one.

See contribution.md

- Enter a test email and amount
- Experience the complete payment flow

### 📱 Demo Screenshots
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we take out this header if we aren't adding the screenshot

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am working on adding a video here. Thanks for re viewing

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fine, but if it's not going in this PR, might be best to just take it out ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pushed an update @just1and0

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, let’s take out the header @Jokotoye18

@Jokotoye18 Jokotoye18 requested a review from just1and0 July 29, 2025 14:38
@mosoakinyemi
Copy link
Collaborator

[nit] - @Jokotoye18 Could we rename the /demo folder to /example for clarity?

value: 'OID1234'
}
]
value: 'OID1234',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[low] - @Jokotoye18 let's try to keep linter/prettier-only changes to a minimum so we can focus on the core updates.

@@ -115,89 +113,119 @@ const Checkout = () => {

---

## 🎮 Demo Project
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nit] - Demo Example Project

| `onSuccess` | `(res) => void` | ✅ | Called on successful payment |
| `onCancel` | `() => void` | ✅ | Called on cancellation |
| `onLoad` | `(res) => void` | — | Triggered when transaction view loads |
| `onError` | `(err) => void` | — | Triggered on WebView or script error |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[low] - @Jokotoye18, just a heads up, the linter diffs are making it tough to follow the actual changes in this PR. Could you please take another look and try to reduce those where possible?

It'll make reviewing a lot smoother. Thanks 💪🏼

@mosoakinyemi
Copy link
Collaborator

mosoakinyemi commented Jul 30, 2025

Asides the tiny recommended changes, PR LGTM ✅
And I think we should add 2 or so screenshots from the demo/example repo @Jokotoye18.

Approving for now, trusting you'll make the necessary adjustments.
Thanks for the contribution @Jokotoye18! 🙌🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants