0.0.34 • Published 6 years ago

react-native-wallet-interface v0.0.34

Weekly downloads
43
License
MIT
Repository
github
Last release
6 years ago

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

PropTypeDescriptionDefaultRequired
currencystringCurrency to be displayed in the wallet. Does not affect any logicMYRoptional
onBalanceChangedfunctionCallback event account balance changed(balance) => nulloptional
themeColorcolorColor to be the header of the wallet. Adviced to choose similar theme color with your app to maintain seamless user experience#3B4A5Coptional
initialBalancenumberAmount 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 called0optional
onExitfunctionFunction 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)()=>nulloptional
presetReloadAmountarray of objectspreset 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 NameDescriptionReturnParameter
getBalanceGet latest balanceinteger (latest balance in smallest unit (cent) in integer)none
0.0.34

6 years ago

0.0.33

6 years ago

0.0.32

6 years ago

0.0.31

6 years ago

0.0.30

6 years ago

0.0.29

6 years ago

0.0.28

6 years ago

0.0.27

6 years ago

0.0.26

6 years ago

0.0.25

6 years ago

0.0.24

6 years ago

0.0.23

6 years ago

0.0.22

6 years ago

0.0.21

6 years ago

0.0.20

6 years ago

0.0.19

6 years ago

0.0.18

6 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago