본문 바로가기
IMaigine。Systems

[RN]스타일링 문제(글씨 높이 설정)

by 전민서 2022. 2. 9.

제가 원했던건

IKW
MATE

 

라는 위 아래의 글인데 여기까지는 가능했습니다.

 

근데...그 두 글 사이의 높이 설정은 어디서 하는건지

margin값을 주어도 달라지는건...

 

아직도 못찾았네요


    <Animated.View style={{
                flex: 1,
                alignItems: 'center',
                justifyContent: 'center',
          				 }}>

                <Text style={{
                    fontSize:64,
                    fontWeight: 'bold',
                    color: 'white'
                 }}>MATE</Text>
                 
 </Animated.View>

위는 MATE만 띄우고

 

아래 코드는 

IKW

MATE

라고 띄우는 코드

    <Animated.View style={{
                flex: 1,
                alignItems: 'center',
                justifyContent: 'center',
            }}>
    
                <Text style={{
                    fontSize:32,
                    fontWeight: 'bold',
                    color: 'white'
                 }}>IKW</Text>

                <Text style={{
                    fontSize:64,
                    fontWeight: 'bold',
                    color: 'white'
                 }}>MATE</Text>

            </Animated.View>

 

 

 

>< 사이에 띄어쓰면 오류납니다.

'IMaigine。Systems' 카테고리의 다른 글

[github]커밋 히스토리 보기  (0) 2022.02.15
[React Native expo]설치 오류 해결법  (0) 2022.02.09
[웹페이지 제작]HTML,CSS  (0) 2022.02.09
[AWS]서버 캐시 관련 의문  (0) 2022.02.09
프로그램 기본 상식?  (0) 2022.02.09