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
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
View File

@@ -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.