Skip to content

Commit

Permalink
fix: update types and fix pass props
Browse files Browse the repository at this point in the history
  • Loading branch information
chukohsin committed May 12, 2020
1 parent b350f5f commit 9f75767
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react-native-payments/lib/js/NativePayments.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const NativePayments: {
show: () => Promise<any>,
abort: () => Promise<any>,
complete: PaymentComplete => Promise<any>,
availableNetworks: () => Promise<any>,
availableNetworks: () => Promise<string[] | boolean>,
getFullWalletAndroid: string => Promise<any>
} = {
supportedGateways: IS_ANDROID
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-payments/lib/js/PKPaymentButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class PKPaymentButton extends React.Component<Props> {

render() {
const { defaultToSetup } = this.state;
const buttonType = defaultToSetup ? 'setUp' : this.props.buttonType;
const buttonType = defaultToSetup ? 'setUp' : this.props.type;
const onPress = defaultToSetup ? PaymentRequest.openPaymentSetup : this.props.onPress;
return (
<RNPKPaymentButton
Expand Down

0 comments on commit 9f75767

Please sign in to comment.