커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
2-4에서 view 코드스니펫을 붙여넣었는데 화면이 안뜹니다 ㅠㅠ
[왕초보] 나만의 수익성 앱, 앱개발 종합반
2주차
북마크
조*빈
댓글
9
추천
1
조회수
12
조회수
12
답변 완료





스파르타 즉문즉답





작성한 코드 및 에러 메세지

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

import React from 'react';

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


export default function App() {

  return (

    <View style={styles.container}>

      <View style={styles.subContainerOne}></View>

      <View style={styles.subContainerTwo}></View>

    </View>

  );

}


const styles = StyleSheet.create({

  container: {

    flex: 1,

    backgroundColor: '#fff',

  },

  subContainerOne: {

    flex:1,

    backgroundColor:"yellow"

  },

  subContainerTwo: {

    flex:1,

    backgroundColor:"green"

  }

});


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