fix
This commit is contained in:
9
.gitignore
vendored
9
.gitignore
vendored
@@ -1,3 +1,12 @@
|
||||
yarn.lock
|
||||
package-lock.json
|
||||
Podfile.lock
|
||||
android/app/build
|
||||
android/.gradle/8.0.1/executionHistory/executionHistory.bin
|
||||
android/.gradle/8.0.1/executionHistory/executionHistory.lock
|
||||
android/.gradle/8.0.1/fileHashes/fileHashes.bin
|
||||
android/.gradle/8.0.1/fileHashes/fileHashes.lock
|
||||
android/.gradle/8.0.1/fileHashes/resourceHashesCache.bin
|
||||
android/.gradle/buildOutputCleanup/buildOutputCleanup.lock
|
||||
android/.gradle/buildOutputCleanup/outputFiles.bin
|
||||
android/.gradle/file-system.probe
|
||||
|
||||
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) => {
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Submodule libs/rnwalletman updated: f12924df97...a93f5d75c3
Reference in New Issue
Block a user