Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- 정보보안용어
- chmod 설정
- 그램 온도 낮추기
- 아나콘다 install
- 노트북CPU성능
- Image Steganography
- 표 가운데정렬
- 스테가노그래피 툴
- 리눅스 권한설정 리눅스 유마스크
- LG 컨트롤 센터
- LG 컨트롤 센터 온도
- 'Destination Folder' cannot contain non-ascii characters (special characters or diacritics). Please choose another location.
- 노트북CPU성능비교
- 표 가운데정렬방법
- chmod umask
- umask and 연산
- 그램 온도
- Forensically
- LG 그램 온도
- LG CONTORL CENTER
- linux 권한설정
- Error : Due to incompatibility with several Python libraries
- 티스토리가운데정렬
- 리눅스 휴지통 비우기
- 리눅스 디스크 다 참
- 스테가노그래피 포렌식 툴
- zsteg
- 유마스크
- 노트북CPU견적
- 티스토리표가운데
Archives
- Today
- Total
공대생의 에러일기
JSX 기본 문법/ 태그 추가 - expo/리액트 본문
반응형
//import {StatusBar} from 'expo-status-bar';
//import React from 'react';
import {StyleSheet, Text, View} from 'react-native';
expo를 사용하기 위해 App.js에 들어가보면 맨 위에 이렇게 import가 된것들을 확인할 수 있는데
맨 마지막 주석되지 않은 줄을 보면
저기 react-native에서 'StyleSheet, Text, View'라는 태그들을 사용할 수 있도록 가져오는 것입니다.
expo default function App() {
return (
<View style={styles.container}>
<Text>secukha.tistory.com</Text>
<StatusBar style="auto" />
</View>
);
}
태그들을 사용할 수있도록 import에 적고나면 바로 아래 function App() 함수에서 <View>,<Text>,<StatusBar>태그들을 사용할 수 있게되는 것입니다.
더보기
++ 추가사항
대부분의 태그들은 여는 태그와 닫는 태그가 쌍으로 존재 하는데
StatusBar는 하나로만 열고 닫는다.
만약 다른 태그들을 추가로 사용하고 싶다면
https://reactnative.dev/docs/view?redirected
View · React Native
The most fundamental component for building a UI, View is a container that supports layout with flexbox, style, some touch handling, and accessibility controls. View maps directly to the native view equivalent on whatever platform React Native is running o
reactnative.dev
여기 공식 리엑트 사이트에서 어떤 태그들을 사용할 수 있는지 확인하고 추가할 수 있습니다!
'ETC' 카테고리의 다른 글
노트북 CPU 성능 순위 (0) | 2023.04.26 |
---|---|
스테가노 그래피 분석 툴 - 포렌식 툴 (0) | 2022.12.03 |
[KSR기자단] 온라인 해킹대회 CTF란? - KISIA 카드뉴스 (0) | 2022.01.15 |
한글 파일 hwp->$$$ 파일 깨짐 $$$로 변경 사진 깨짐 (2) | 2021.12.28 |
한글 hwpx 파일 검정여백, 검정바탕 문제 해결방법 (1) | 2021.12.28 |
Comments