RnMultibundler/src/app/screens/main/MainViewScreen.tsx

43 行
1.1 KiB
TypeScript

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