fix
This commit is contained in:
12
App.tsx
12
App.tsx
@@ -29,12 +29,14 @@ import {
|
||||
checkNotificationPermission,
|
||||
openNotificationSettings,
|
||||
requestSmsPermission,
|
||||
PhonePePersonalBindResult,
|
||||
PhonePePersonalBind,
|
||||
SmsMessage,
|
||||
NotificationMessage,
|
||||
} from "rnwalletman";
|
||||
|
||||
import BarcodeScanning from '@react-native-ml-kit/barcode-scanning';
|
||||
import RNFS from 'react-native-fs';
|
||||
import { NotificationMessage, PhonepePersonalBindResult, SmsMessage } from "./rnwalletman/src/types";
|
||||
import { PhonepePersonalBind } from "./rnwalletman/src/PhonepePersonalBind";
|
||||
|
||||
interface AppProps {
|
||||
|
||||
@@ -325,7 +327,7 @@ export default class App extends Component<AppProps, AppState> {
|
||||
}
|
||||
|
||||
/* 上传 PhonePe Personal 到服务器 */
|
||||
handleUploadPhonePePersonal = async (result: PhonepePersonalBindResult) => {
|
||||
handleUploadPhonePePersonal = async (result: PhonePePersonalBindResult) => {
|
||||
try {
|
||||
console.log(result);
|
||||
const response = await Api.instance.register(WalletType.PHONEPE_PERSONAL, {
|
||||
@@ -428,10 +430,10 @@ export default class App extends Component<AppProps, AppState> {
|
||||
if (this.state.showPhonePePersonalBind) {
|
||||
return (
|
||||
<Modal visible={this.state.showPhonePePersonalBind} transparent={true} onRequestClose={() => this.setState({ showPhonePePersonalBind: false })}>
|
||||
<PhonepePersonalBind
|
||||
<PhonePePersonalBind
|
||||
processString="Processing PhonePe Personal..."
|
||||
isDebug={true}
|
||||
onSuccess={(result: PhonepePersonalBindResult) => {
|
||||
onSuccess={(result: PhonePePersonalBindResult) => {
|
||||
this.handleUploadPhonePePersonal(result);
|
||||
}}
|
||||
onError={(error: string) => {
|
||||
|
||||
Reference in New Issue
Block a user