import React from 'react'; import { View, Image, Linking, Button, Alert, StyleSheet, Text } from 'react-native'; import axios from 'axios'; import sha256 from 'crypto-js/sha256'; import ChargingFinishPageComponent from '../../component/chargingPage/chargingFinishPageComponent'; export default function Test() { return ( ); } // const handleRedirect = async () => { // const wechatPayUrl = // 'https://cashiermd.95516.com/b2c/api/unifiedOrder.action?tn=560492826346743689323&sign=87d11db496ba7631e44863b49490657b2968af15021d4812b5bde9ca9eb78df4&__log_id_=ACP0240827121309434f0050468870'; // try { // const supported = await Linking.canOpenURL(wechatPayUrl); // if (supported) { // await Linking.openURL(wechatPayUrl); // } else { // console.log("Don't know how to open URI: " + wechatPayUrl); // alert('WeChat Pay is not available on this device.'); // } // } catch (err) { // console.error('An error occurred', err); // alert('An error occurred while trying to open WeChat Pay.'); // } // };