You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the `options` property on the [FlutterwaveButton](#flutterwavebuttonprops-interface) changes, when next the user taps on the button a new payment will be initialized whether the last one was successful or not.
69
+
If the `options` property on [PayWithFlutterwave](#paywithflutterwaveprops-interface) changes, when next the user taps on the button a new payment will be initialized whether the last one was successful or not.
70
70
71
-
Remember you cannot use the same transaction reference for two different payments, remember to recreate the transaction reference before allowing the user initiate a new payment.
71
+
Remember you cannot use the same transaction reference for two different payments, also remember to recreate the transaction reference before allowing the user initiate a new payment.
72
72
73
73
74
74
## Usage
75
75
Below are a few examples showcasing how you can use the library to implement payment in your React Native app.
When called, this function returns a Promise which resolves to a string on success and rejects if an error occurs. [See all config options](#flutterwaveinitoptions)
149
148
150
149
Import `FlutterwaveInit` from `react-native-flutterwave` and use it like so.
@@ -192,8 +191,8 @@ try {
192
191
| meta | No | array of [FlutterwavePaymentMeta](#flutterwavepaymentmeta)| undefined | This is an object that helps you include additional payment information to your request. `E.g. { 'consumer_id': 23, 'consumer_mac': '92a3-912ba-1192a' }`|
193
192
| customizations | No |[FlutterwaveInitCustomizations](#flutterwaveinitcustomizations)| undefined | This is an object that contains title, logo, and description you want to display on the modal `E.g. {'title': 'Pied Piper Payments', 'description': 'Middleout isn't free. Pay the price', 'logo': 'https://assets.piedpiper.com/logo.png'}`|
| style | No | object | undefined | Used to apply styling to the button.|
@@ -206,16 +205,13 @@ try {
206
205
| customButton | No | function | undefined | This is used to render a custom button. The function a prop argument structured like [CustomButtonProps](#custombuttonprops), this function should return a valid React node. |
207
206
| alignLeft | No | boolean | undefined | This aligns the content of the button to the left. |
208
207
209
-
### DefaultButtonProps
210
-
[See Interface](#defaultbuttonprops-interface)
208
+
### FlwButton Props
209
+
[See Interface](#flwbuttonprops-interface)
211
210
| Name | Required | Type | Default | Description |
| style | No |object| undefined |Used to apply styling to the button.|
214
-
| onPress | Yes | function | undefined | This |
212
+
| style | No |ViewStyle| undefined |This component uses the same style properties that are applicable to react-native's View component style.|
213
+
| onPress | Yes | function | undefined | This property receive a function that is called on button press. |
215
214
| disabled | No | boolean | undefined | This disables button, and causes onPress not to be fired.|
216
-
| isBusy | No | boolean | undefined | This puts the button in a busy state, making the content look faded.|
217
-
| onSizeChange | No | (ev: {width: number; height: number}) => void | undefined | If provided this function is fired whenever the size(height or width) of the button changes |
218
-
| children | Yes | ReactElement | undefined | This will be the content rendered within the button, if string is to be direct decendant, remember to put string in the Text component. |
219
215
| alignLeft | No | boolean | undefined | This aligns the content of the button to the left. |
0 commit comments