728x90
반응형

React Native 96

FlexBox

flexDirection controls the direction in which the children of a node are laid out. This is also referred to as the main axis. The cross axis is the axis perpendicular to the main axis, or the axis which the wrapping lines are laid out in. row - 가로로 배치 ( 좌 -> 우 ) column (default value) - 기본 세로 ( 위 -> 아래 ) row-reverse - 가로로 배치 ( 우 -> 좌) column-reverse - 세로로 배치 ( 아래 -> 위 ) justifyContent - 진행 하는 방향..

React Native 2020.03.09

React native Fetch 네트워크 통신

async function getMoviesFromApi() { try { let response = await fetch( 'https://facebook.github.io/react-native/movies.json', ); let responseJson = await response.json(); return responseJson.movies; } catch (error) { console.error(error); } } 네트워킹은 본질적으로 비동기 작업입니다. Fetch 메소드는 Promise 를 반환 하여 비동기 방식으로 작동하는 코드를 작성하는 것이 간단합니다. function getMoviesFromApiAsync() { return fetch('https://facebook.github...

React Native 2020.02.24
728x90
반응형