2025-07-22 15:16:47 +08:00
|
|
|
import React from 'react';
|
2025-07-22 15:31:41 +08:00
|
|
|
import { Button, StyleSheet, View } from 'react-native';
|
2025-07-22 15:16:47 +08:00
|
|
|
import { StackScreenProps } from '@react-navigation/stack';
|
|
|
|
|
import { MainParamList } from '@app/routes/MainParamList';
|
2025-07-22 15:31:41 +08:00
|
|
|
import { Apps, NavigationPushByName } from '@common/NavigationHelper.ts';
|
|
|
|
|
import { showMessage } from '@common/ToastHelper.ts';
|
2025-07-22 15:16:47 +08:00
|
|
|
|
|
|
|
|
type Props = StackScreenProps<MainParamList, 'MainView'>;
|
|
|
|
|
|
|
|
|
|
export default function WebViewScreen(props: Props) {
|
2025-07-22 15:31:41 +08:00
|
|
|
return (
|
|
|
|
|
<View style={styles.container}>
|
|
|
|
|
<View style={{ height: 100 }} />
|
|
|
|
|
<Button
|
|
|
|
|
title={'进入互联网医院'}
|
|
|
|
|
onPress={() => {
|
|
|
|
|
NavigationPushByName(Apps.Hospital, {});
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
<View style={{ height: 15 }} />
|
|
|
|
|
<Button
|
|
|
|
|
title={'进入医网签'}
|
|
|
|
|
onPress={() => {
|
|
|
|
|
NavigationPushByName(Apps.Ywq, {});
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
<View style={{ height: 15 }} />
|
|
|
|
|
<Button
|
|
|
|
|
title={'Toast'}
|
|
|
|
|
onPress={() => {
|
|
|
|
|
showMessage('APP页面弹出toast');
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
</View>
|
|
|
|
|
);
|
2025-07-22 15:16:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const styles = StyleSheet.create({
|
|
|
|
|
container: {
|
|
|
|
|
flex: 1,
|
|
|
|
|
},
|
|
|
|
|
});
|