커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
2-4 View, Text 코드 삽입 오류
[왕초보] 나만의 수익성 앱, 앱개발 종합반
2주차
북마크
조*형
댓글
2
추천
0
조회수
14
조회수
14
답변 완료

import { StatusBar } from 'expo-status-bar';

import React from 'react';

import { StyleSheet, Text, View } from 'react-native';


export default function App() {

  return (

    import React from 'react';

import { StyleSheet, Text, View } from 'react-native';


export default function App() {

  return (

    <View style={styles.container}>

      <Text>문자는 Text 태그 사이에 작성!!</Text>

      <Text>문자는 Text 태그 사이에 작성!!</Text>

      <Text>문자는 Text 태그 사이에 작성!!</Text>

      <Text>문자는 Text 태그 사이에 작성!!</Text>

      <Text>문자는 Text 태그 사이에 작성!!</Text>

      <Text>문자는 Text 태그 사이에 작성!!</Text>

      <Text>문자는 Text 태그 사이에 작성!!</Text>

      <Text>문자는 Text 태그 사이에 작성!!</Text>

      <Text>문자는 Text 태그 사이에 작성!!</Text>

      <Text>문자는 Text 태그 사이에 작성!!</Text>

      <Text>문자는 Text 태그 사이에 작성!!</Text>

    </View>

  );

}


const styles = StyleSheet.create({

  container: {

    flex: 1,

    backgroundColor: '#fff',

    alignItems: 'center',

    justifyContent: 'center',

  },

});

  );

}


const styles = StyleSheet.create({

  container: {

    flex: 1,

    backgroundColor: '#fff',

  },

  subContainerOne: {

    flex:1,

    backgroundColor:"yellow"

  },

  subContainerTwo: {

    flex:1,

    backgroundColor:"green"

  }

});



알려주신 코드 그대로 붙여넣고 실행했는데 아래 처럼 오류가 뜨면서 실행이 되지 않습니다.




스파르타 즉문즉답


취소
 공유
취소
댓글 0
댓글 알림
나의얼굴