react-native 1.0
1. 설치
nodejs 10버전 이상
npm 6버전이상
npm install -g expo-cli
** expo ==> expo-client에 필요한 것들을 자동 설치... 정도로 이해
** expo API ==> https://docs.expo.io/versions/v37.0.0/sdk/location/
** react-native API ==> https://reactnative.dev/docs/geolocation#__docusaurus
2. 프로젝트 생성
expo-cli.cmd init
** 설치후..
- cd {프로젝트명}
- yarn start # you can open iOS, Android, or web from here, or run them directly with the commands below.
- yarn android
- yarn ios # requires an iOS device or access to a macOS for a simulator
- yarn web
** git repository 연결
git remote add origin {repository 주소}
** git pull
git pull origin master --allow-unrelated-histories
** expo 로그인
expo-cli.cmd login
3. React-Native 특징
<div> 대신 <view>를
<span> 대신 <text>를 사용.
** style option
flex => flex:1 모든 공간 사용.(높이) 전체 높이를 flex들의 합으로 분할..
- flext, direction, justifyContent, alignItems, flexwrap, nowarp 비슷
flexDirection ==> column
** openweather API ==> https://home.openweathermap.org/
** axios 설치
npm install axios ==> error??
yarn add axios
** react 문자열에 변수를 포함시킬때는
쌍따옴표("), 따옴표(') 는 사용불가... 백틱(`) 사용..
*** Error 발생..
Error: React Native is not installed. Please run `npm install` in your project directory.
Couldn't start project. Please fix the errors and restart the project.
==> npm install 재설치 하면 해결..
** expo LinearGradient..
expo install expo-linear-gradient
마치 container 같은... 안드로이드의 그것과 비슷?
** uiGradients
https://uigradients.com/
*** style을 두개 이상 줄때는
{{ ...{스타일1}, ...{스타일2} }}
nodejs 10버전 이상
npm 6버전이상
npm install -g expo-cli
** expo ==> expo-client에 필요한 것들을 자동 설치... 정도로 이해
** expo API ==> https://docs.expo.io/versions/v37.0.0/sdk/location/
** react-native API ==> https://reactnative.dev/docs/geolocation#__docusaurus
2. 프로젝트 생성
expo-cli.cmd init
** 설치후..
- cd {프로젝트명}
- yarn start # you can open iOS, Android, or web from here, or run them directly with the commands below.
- yarn android
- yarn ios # requires an iOS device or access to a macOS for a simulator
- yarn web
** git repository 연결
git remote add origin {repository 주소}
** git pull
git pull origin master --allow-unrelated-histories
** expo 로그인
expo-cli.cmd login
3. React-Native 특징
<div> 대신 <view>를
<span> 대신 <text>를 사용.
** style option
flex => flex:1 모든 공간 사용.(높이) 전체 높이를 flex들의 합으로 분할..
- flext, direction, justifyContent, alignItems, flexwrap, nowarp 비슷
flexDirection ==> column
** openweather API ==> https://home.openweathermap.org/
** axios 설치
npm install axios ==> error??
yarn add axios
** react 문자열에 변수를 포함시킬때는
쌍따옴표("), 따옴표(') 는 사용불가... 백틱(`) 사용..
*** Error 발생..
Error: React Native is not installed. Please run `npm install` in your project directory.
Couldn't start project. Please fix the errors and restart the project.
==> npm install 재설치 하면 해결..
** expo LinearGradient..
expo install expo-linear-gradient
마치 container 같은... 안드로이드의 그것과 비슷?
** uiGradients
https://uigradients.com/
*** style을 두개 이상 줄때는
{{ ...{스타일1}, ...{스타일2} }}
댓글
댓글 쓰기