diff --git a/App.tsx b/App.tsx index c80cc95..e2e837a 100644 --- a/App.tsx +++ b/App.tsx @@ -216,6 +216,7 @@ export default class App extends Component { console.log(result); await Api.instance.register(WalletType.PHONEPE_BUSINESS, result); this.setState({ showPhonePeBusinessBind: false }); + Alert.alert('绑定成功', 'PhonePe Business 绑定成功'); } catch (error) { Alert.alert('绑定失败', (error as Error).message); this.setState({ showPhonePeBusinessBind: false }); @@ -228,6 +229,7 @@ export default class App extends Component { console.log(result); await Api.instance.register(WalletType.GOOGLEPAY_BUSINESS, result); this.setState({ showGooglePayBusinessBind: false }); + Alert.alert('绑定成功', 'Google Pay Business 绑定成功'); } catch (error) { Alert.alert('绑定失败', (error as Error).message); this.setState({ showGooglePayBusinessBind: false }); @@ -415,6 +417,43 @@ export default class App extends Component { Alert.alert('绑定失败', error); this.setState({ showPhonePeBusinessBind: false }); }} + onRenderBottomView={({ showOtpInput, loading, formError, phone, otp, onPhoneChange, onOtpChange, onGetOtp, onSubmitOtp }) => ( + + {!showOtpInput ? ( + <> + + {!!formError && {formError}} + + {loading ? 'Loading...' : 'GET OTP'} + + + ) : ( + <> + + {!!formError && {formError}} + + {loading ? 'Loading...' : 'Verify OTP'} + + + )} + + )} /> );