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

import React from 'react';

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


export default function AboutPage() {

const aboutImage = "https://storage.googleapis.com/sparta-image.appspot.com/lecture/about.png"

return (

<View style={styles.container}>

<Text style={styles.title}>HI! 스파르타 코딩 앱개발반에 오신것을 환영합니다</Text>

<View style={styles.content}>

<Image style={styles.aboutImage} source={{uri:aboutImage}} resizeMode={"cover"}/>

<Text style={styles.contentText01}>많은 내용을 간결하게 담아내려 노력했습니다!</Text>

<Text style={styles.contentText02}>꼭 완주 하셔서 꼭 여러분것으로 만들어가시길 바랍니다</Text>

<TouchableOpacity style={styles.contentButton}>

<Text style={styles.contentButtonText}>kjsdd36@naver.com</Text></TouchableOpacity>

</View>

</View>)

}



const styles = StyleSheet.create({

container:{

flex: 1,

backgroundColor:'#000066',

alignItems:"center"

},

title:{

flex: 1,

fontWeight: 'bold',

color: '#fff',

fontSize: 35,

margin: 30,

marginTop: 100,

},

content:{

flex: 5,

backgroundColor: '#fff',

borderRadius: 20,

margin: 30,

marginBottom: 100,

},

aboutImage:{

flex: 1,

width: 'auto',

height: 'auto',

borderRadius: 30,

alignSelf: 'center'


},

contentText01:{

margin: 20,

fontWeight:'bold',

fontSize: 25,

textAlign: 'center'

},

contentText02:{

margin: 20,

fontWeight:'bold',

fontSize: 18,

textAlign: 'center'

},

contentButton:{

width: 'auto',

height: 'auto',

backgroundColor:'#FFCC00',

borderRadius:20,

margin: 30,

alignSelf: 'center',

padding: 30,

},

contentButtonText:{

fontSize: 20,

color: '#fff',


}




})



작성한 코드 및 에러 메세지

Render Error

스파르타 즉문즉답스파르타 즉문즉답


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