커뮤니티
포인트
로딩중
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
해당 사진 소개 페이지 본문 사이 흰색줄 없애는법
[왕초보] 나만의 수익성 앱, 앱개발 종합반
3주차
북마크
신*혁
댓글
10
추천
0
조회수
9
조회수
9
답변 완료

import React, { useEffect,useState } from 'react'

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

const about = 'https://firebasestorage.googleapis.com/v0/b/sparta-image.appspot.com/o/lecture%2FaboutImage.png?alt=media&token=13e1c4f6-b802-4975-9773-e305fc7475c4'



   

 

export default function AboutPage({navigation,route}){

  useEffect(()=>{

    navigation.setOptions({

        title:"소개 페이지",

        headerStyle: {

            backgroundColor: '#00008b',

            shadowColor: "##00008b",

           

        },

        headerTintColor: "#fff",

    })

},[])

 

 

  return (

  <SafeAreaView style={styles.container}>

   

    <View style={styles.itemcontainer}>

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

    </View>

    <View style={styles.item1}>

    <Image style={styles.mainImage} source={{uri:about}}/>

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

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

    <TouchableOpacity style={styles.middleButton04}><Text style={styles.ButtonText}>여러분의 인스타계정</Text></TouchableOpacity>

    </View>


  </SafeAreaView>)


}

const styles = StyleSheet.create({

    container: {

      //앱의 배경 색

      flex : 1,

      backgroundColor: '#00008b',

     

    },

    itemcontainer:

    {

       

        justifyContent:'center',

       

       


    },


    title: {

   

      //폰트 사이즈

      fontSize: 31,

      //폰트 두께

      fontWeight: '500',

      //위 공간으로 부터 이격

      marginTop:70,

      //왼쪽 공간으로 부터 이격

     

      color : '#fff',

      textAlign: 'left',

      alignSelf: 'center'

     

     

    },


   

    item1: {

       

       

        backgroundColor:'#fff',

        width:250,

        height:440,

        alignContent:'center',

        margin:50,

        marginTop:70,

        borderRadius:20,

        alignItems:'center'

       


    },


    mainImage: {


        width:130,

        height:130,

        alignSelf:'center',

        marginTop:60,

        borderRadius:20,

    },


    card1 : {

        fontSize:17,

        textAlign:'center',

        fontWeight: '700',

    },

    card2 : {

        fontSize:12,

        textAlign:'center',

        marginTop:20,

        fontWeight: '600',


    },

    middleButton04:{

        width:160,

        height:50,

        padding:15,

        backgroundColor:"#fdc453",

        borderColor:"deeppink",

        borderRadius:15,

        marginTop : 20,

       

       

    },


    ButtonText : {

        color : '#fff',

      textAlign: 'center',

      alignSelf: 'center'

    },


   

})


스파르타 즉문즉답



저 소개 페이지 밑에 흰색줄은 어떻게 없앨까요 ㅠ

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