mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-06 22:46:01 +08:00
31 lines
556 B
JavaScript
31 lines
556 B
JavaScript
import React from 'react';
|
|
import { StyleSheet, Text, View } from 'react-native';
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
backgroundColor: '#F5FCFF',
|
|
},
|
|
welcome: {
|
|
fontSize: 20,
|
|
textAlign: 'center',
|
|
margin: 10,
|
|
},
|
|
});
|
|
|
|
const ProfileScreen = () => (
|
|
<View style={styles.container}>
|
|
<Text style={styles.welcome}>
|
|
Profile Screen
|
|
</Text>
|
|
</View>
|
|
);
|
|
|
|
ProfileScreen.navigationOptions = {
|
|
title: 'Profile',
|
|
};
|
|
|
|
export default ProfileScreen;
|