커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
강의 2-4 39분35초경 flexdirection 코드 삽입에 에러가 나옵니다
[왕초보] 나만의 수익성 앱, 앱개발 종합반 v5
2주차
북마크
이*용
댓글
3
추천
0
조회수
5
조회수
5
답변 완료

* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.


강의 2-4 39분35초경 flexdirection 코드 삽입에 에러가 나옵니다 밑에 backgroundColor:"orange"에 빨간 밑줄이 그어져 있는게 의심되긴합니다

import React from 'react';

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


export default function App() {

  return (

    <View style={styles.container}>

      <View style={styles.containerOne}>


      </View>

      <View style={styles.containerTwo}>

        <View style={styles.innerOne}>

         

        </View>

        <View style={styles.innerTwo}>

          <Text>!!컨텐츠!!</Text>

        </View>


      </View>

    </View>

  );

}


const styles = StyleSheet.create({

  container: {

    flex:1

  },

  containerOne: {

    flex:1,

    backgroundColor:"red"

  },

  containerTwo:{

    flex:2,

    flexDirection:"row",

    backgroundColor:"yellow"

  },

  innerOne: {

    flex:1,

    backgroundColor:"blue"

  },

  innerTwo: {

    flex:4,

    justifyContent:"center",

    backgroundColor:"orange"

  }

});




import React from 'react';

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


export default function App() {

  return (

    <View style={styles.container}>

      <View style={styles.containerOne}>


      </View>

      <View style={styles.containerTwo}>

        <View style={styles.innerOne}>

         

        </View>

        <View style={styles.innerTwo}>

          <Text>!!컨텐츠!!</Text>

        </View>


      </View>

    </View>

  );

}


const styles = StyleSheet.create({

  container: {

    flex:1

  },

  containerOne: {

    flex:1,

    backgroundColor:"red"

  },

  containerTwo:{

    flex:2,

    flexDirection:"row",

    backgroundColor:"yellow"

  },

  innerOne: {

    flex:1,

    backgroundColor:"blue"

  },

  innerTwo: {

    flex:4,

    justifyContent:"center",

    flexdirection:"row"

    backgroundColor:"orange"

  }

});







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