RnMultibundler/src/app/App.tsx

42 行
784 B
TypeScript

/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
*/
import {
Button,
StatusBar,
StyleSheet,
useColorScheme,
View,
} from 'react-native';
import * as navigation from '@common/NavigationHelper.ts';
function App() {
const isDarkMode = useColorScheme() === 'dark';
return (
<View style={styles.container}>
<StatusBar barStyle={isDarkMode ? 'light-content' : 'dark-content'} />
<View style={{ height: 100 }} />
<Button
title={'进入互联网医院'}
onPress={() => {
console.log('>>>>', navigation);
navigation.pushByName('hospital', {});
}}
/>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
},
});
export default App;