|
@@ -1,12 +1,38 @@
|
|
import React from 'react';
|
|
import React from 'react';
|
|
-import { StyleSheet, View } from 'react-native';
|
|
|
|
|
|
+import { Button, StyleSheet, View } from 'react-native';
|
|
import { StackScreenProps } from '@react-navigation/stack';
|
|
import { StackScreenProps } from '@react-navigation/stack';
|
|
import { MainParamList } from '@app/routes/MainParamList';
|
|
import { MainParamList } from '@app/routes/MainParamList';
|
|
|
|
+import { Apps, NavigationPushByName } from '@common/NavigationHelper.ts';
|
|
|
|
+import { showMessage } from '@common/ToastHelper.ts';
|
|
|
|
|
|
type Props = StackScreenProps<MainParamList, 'MainView'>;
|
|
type Props = StackScreenProps<MainParamList, 'MainView'>;
|
|
|
|
|
|
export default function WebViewScreen(props: Props) {
|
|
export default function WebViewScreen(props: Props) {
|
|
- return <View style={styles.container}></View>;
|
|
|
|
|
|
+ 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>
|
|
|
|
+ );
|
|
}
|
|
}
|
|
|
|
|
|
const styles = StyleSheet.create({
|
|
const styles = StyleSheet.create({
|