1. 기존 코드 나는 니꼬쌤의 react native 기본 강의를 보면서 간단한 날씨 어플을 만들었다. // import { StatusBar } from 'expo-status-bar'; import * as Location from "expo-location"; import { useEffect, useState } from 'react'; import { StyleSheet, Text, View, ScrollView, Dimensions, ActivityIndicator } from 'react-native'; const {width:SCREEN_WIDTH} = Dimensions.get("window"); const API_KEY ="15195b65e8894febd84d5a8e8357ef06"; ..
Weather API - OpenWeatherMap Please, sign up to use our fast and easy-to-work weather APIs. As a start to use OpenWeather products, we recommend our One Call API 3.0. For more functionality, please consider our products, which are included in professional collections. openweathermap.org 위 사이트에서 무료 날씨 정보를 얻어올 것이다. 가입하고 Current Weather이나 3-hour Forecast 5 days 중 하나를 선택해 들어가 subscribe를 한다. 가만 읽어보니 ..
https://reactnative-archive-august-2023.netlify.app/docs/0.65/scrollview ScrollView · React Native Component that wraps platform ScrollView while providing integration with touch locking "responder" system. reactnative-archive-august-2023.netlify.app 주로 공식문서에서 react native 기본을 떼자 1. flex 웹에서는 flex direction 기본 방향이 row이지만, react native에서는 기본 방향이 column이다. 핸드폰의 크기는 정말 다양하기 때문에 대부분 width나 height을 설..