55 */
66
77import React from 'react' ;
8- import {
9- SafeAreaView ,
10- ScrollView ,
11- StatusBar ,
12- StyleSheet ,
13- Text ,
14- useColorScheme ,
15- View ,
16- } from 'react-native' ;
8+ import { SafeAreaView , ScrollView , StatusBar , StyleSheet , Text , useColorScheme , View } from 'react-native' ;
179import { Button , Icon } from '@uiw/react-native' ;
1810
19- import {
20- Colors ,
21- DebugInstructions ,
22- Header ,
23- LearnMoreLinks ,
24- ReloadInstructions ,
25- } from 'react-native/Libraries/NewAppScreen' ;
11+ import { Colors , DebugInstructions , Header , LearnMoreLinks , ReloadInstructions } from 'react-native/Libraries/NewAppScreen' ;
2612
2713const Section = ( { children, title} ) => {
2814 const isDarkMode = useColorScheme ( ) === 'dark' ;
@@ -60,9 +46,7 @@ const App = () => {
6046 return (
6147 < SafeAreaView style = { backgroundStyle } >
6248 < StatusBar barStyle = { isDarkMode ? 'light-content' : 'dark-content' } />
63- < ScrollView
64- contentInsetAdjustmentBehavior = "automatic"
65- style = { backgroundStyle } >
49+ < ScrollView contentInsetAdjustmentBehavior = "automatic" style = { backgroundStyle } >
6650 < Header />
6751 < View
6852 style = { {
@@ -71,18 +55,15 @@ const App = () => {
7155 < Button type = "primary" > 按钮之间的间距</ Button >
7256 < Icon name = "apple" size = { 46 } color = "#50CB42" />
7357 < Section title = "Step One" >
74- Edit < Text style = { styles . highlight } > App.js</ Text > to change this
75- screen and then come back to see your edits.
58+ Edit < Text style = { styles . highlight } > App.js</ Text > to change this screen and then come back to see your edits.
7659 </ Section >
7760 < Section title = "See Your Changes" >
7861 < ReloadInstructions />
7962 </ Section >
8063 < Section title = "Debug" >
8164 < DebugInstructions />
8265 </ Section >
83- < Section title = "Learn More" >
84- Read the docs to discover what to do next:
85- </ Section >
66+ < Section title = "Learn More" > Read the docs to discover what to do next:</ Section >
8667 < LearnMoreLinks />
8768 </ View >
8869 </ ScrollView >
0 commit comments