This commit is contained in:
2026-01-23 17:15:53 +08:00
parent ecd56ef291
commit 750355f56d
11 changed files with 17 additions and 6 deletions

9
.gitignore vendored
View File

@@ -1,3 +1,12 @@
yarn.lock yarn.lock
package-lock.json package-lock.json
Podfile.lock 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
View File

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

Binary file not shown.