npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-native-wallet-interface

v0.0.34

Published

focus on your business, forget the headache of making wallet interface, api calls and etc

Downloads

42

Readme

react-native-wallet-interface

Your app deals with payment but no time to develop and maintain UI and API calls for e-wallet or any payment gateway?

Introducing REACT NATIVE WALLET INTERFACE

A library that can exist on its own and also can be imported into other app seamlessly, does not conflict with any navigation modules since we have own navigation handling.

Installation

npm i -S react-native-wallet-interface

Properties

|Prop|Type|Description|Default|Required| |----|----|-----------|-------|--------| |currency|string|Currency to be displayed in the wallet. Does not affect any logic|MYR|optional| |onBalanceChanged|function|Callback event account balance changed|(balance) => null|optional| |themeColor|color|Color to be the header of the wallet. Adviced to choose similar theme color with your app to maintain seamless user experience|#3B4A5C|optional| |initialBalance|number|Amount of balance in the wallet initially. If you want this library handle everything for you, no need to supply this value. This library will call API to check balance on itself. Therefore this prop is just "placeholder" amount before the api is called|0|optional|| |onExit|function|Function to trigger when wishing to hide this module. (this prop is not used if this library is run independently on its own, only used if it is import into other app)|()=>null|optional| |presetReloadAmount|array of objects|preset amount for user to reload (if you dont want to allow for user to freely reload any amount)|[{ amount: "3" },{ amount: "5" },{ amount: "10" }]|optional|

*due to incapability of modern computer handling floating points properly, all numbers that represent amount suppose and should be in integer. (You should know this issue if you are dealing with payment :P)

Methods (Accessible from parent using ref)

|Function Name|Description|Return|Parameter| |-------------|-----------|------|---------| |getBalance|Get latest balance|integer (latest balance in smallest unit (cent) in integer)|none|