1- import React from 'react' ;
1+ import React from 'react'
22import {
33 Image ,
44 Platform ,
@@ -7,20 +7,23 @@ import {
77 Text ,
88 TouchableOpacity ,
99 View ,
10- } from 'react-native' ;
11- import { WebBrowser } from 'expo' ;
10+ } from 'react-native'
11+ import { WebBrowser } from 'expo'
1212
13- import { MonoText } from '../components/StyledText' ;
13+ import { MonoText } from '../components/StyledText'
1414
1515export default class HomeScreen extends React . Component {
1616 static navigationOptions = {
1717 header : null ,
18- } ;
18+ }
1919
2020 render ( ) {
2121 return (
2222 < View style = { styles . container } >
23- < ScrollView style = { styles . container } contentContainerStyle = { styles . contentContainer } >
23+ < ScrollView
24+ style = { styles . container }
25+ contentContainerStyle = { styles . contentContainer }
26+ >
2427 < View style = { styles . welcomeContainer } >
2528 < Image
2629 source = {
@@ -35,33 +38,44 @@ export default class HomeScreen extends React.Component {
3538 < View style = { styles . getStartedContainer } >
3639 { this . _maybeRenderDevelopmentModeWarning ( ) }
3740
38- < Text style = { styles . getStartedText } > Get started by opening </ Text >
41+ < Text style = { styles . getStartedText } > CPS 客户端 </ Text >
3942
40- < View style = { [ styles . codeHighlightContainer , styles . homeScreenFilename ] } >
41- < MonoText style = { styles . codeHighlightText } > screens/HomeScreen.js</ MonoText >
43+ < View
44+ style = { [ styles . codeHighlightContainer , styles . homeScreenFilename ] }
45+ >
46+ < MonoText style = { styles . codeHighlightText } >
47+ screens/HomeScreen.js
48+ </ MonoText >
4249 </ View >
43-
44- < Text style = { styles . getStartedText } >
45- Change this text and your app will automatically reload.
46- </ Text >
4750 </ View >
4851
4952 < View style = { styles . helpContainer } >
50- < TouchableOpacity onPress = { this . _handleHelpPress } style = { styles . helpLink } >
51- < Text style = { styles . helpLinkText } > Help, it didn’t automatically reload!</ Text >
53+ < TouchableOpacity
54+ onPress = { this . _handleHelpPress }
55+ style = { styles . helpLink }
56+ >
57+ < Text style = { styles . helpLinkText } >
58+ Help, it didn’t automatically reload!
59+ </ Text >
5260 </ TouchableOpacity >
5361 </ View >
5462 </ ScrollView >
5563
5664 < View style = { styles . tabBarInfoContainer } >
57- < Text style = { styles . tabBarInfoText } > This is a tab bar. You can edit it in:</ Text >
65+ < Text style = { styles . tabBarInfoText } >
66+ This is a tab bar. You can edit it in:
67+ </ Text >
5868
59- < View style = { [ styles . codeHighlightContainer , styles . navigationFilename ] } >
60- < MonoText style = { styles . codeHighlightText } > navigation/MainTabNavigator.js</ MonoText >
69+ < View
70+ style = { [ styles . codeHighlightContainer , styles . navigationFilename ] }
71+ >
72+ < MonoText style = { styles . codeHighlightText } >
73+ navigation/MainTabNavigator.js
74+ </ MonoText >
6175 </ View >
6276 </ View >
6377 </ View >
64- ) ;
78+ )
6579 }
6680
6781 _maybeRenderDevelopmentModeWarning ( ) {
@@ -70,32 +84,34 @@ export default class HomeScreen extends React.Component {
7084 < Text onPress = { this . _handleLearnMorePress } style = { styles . helpLinkText } >
7185 Learn more
7286 </ Text >
73- ) ;
87+ )
7488
7589 return (
7690 < Text style = { styles . developmentModeText } >
77- Development mode is enabled, your app will be slower but you can use useful development
78- tools. { learnMoreButton }
91+ Development mode is enabled, your app will be slower but you can use
92+ useful development tools. { learnMoreButton }
7993 </ Text >
80- ) ;
94+ )
8195 } else {
8296 return (
8397 < Text style = { styles . developmentModeText } >
8498 You are not in development mode, your app will run at full speed.
8599 </ Text >
86- ) ;
100+ )
87101 }
88102 }
89103
90104 _handleLearnMorePress = ( ) => {
91- WebBrowser . openBrowserAsync ( 'https://docs.expo.io/versions/latest/guides/development-mode' ) ;
92- } ;
105+ WebBrowser . openBrowserAsync (
106+ 'https://docs.expo.io/versions/latest/guides/development-mode'
107+ )
108+ }
93109
94110 _handleHelpPress = ( ) => {
95111 WebBrowser . openBrowserAsync (
96112 'https://docs.expo.io/versions/latest/guides/up-and-running.html#can-t-see-your-changes'
97- ) ;
98- } ;
113+ )
114+ }
99115}
100116
101117const styles = StyleSheet . create ( {
@@ -142,6 +158,7 @@ const styles = StyleSheet.create({
142158 } ,
143159 getStartedText : {
144160 fontSize : 17 ,
161+ fontWeight : 'bold' ,
145162 color : 'rgba(96,100,109, 1)' ,
146163 lineHeight : 24 ,
147164 textAlign : 'center' ,
@@ -185,4 +202,4 @@ const styles = StyleSheet.create({
185202 fontSize : 14 ,
186203 color : '#2e78b7' ,
187204 } ,
188- } ) ;
205+ } )
0 commit comments