
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
export default function App() {
LogBox.ignoreLogs(['Warning: ...']);//경고창 제거
return ( // '<' 이게 붙으면 jsx문법시작
<View style={styles.container}>{/* 이렇게 해야 jsx주석*/}
<Text>스파르타!</Text>
<StatusBar style="auto" />
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});
화면에 출력이 다 나오나요
