๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
728x90
๋ฐ˜์‘ํ˜•

๐Ÿ–ฅ๏ธํ”„๋ก ํŠธ์—”๋“œ/React Native5

๋ฆฌ์•กํŠธ ๋„ค์ดํ‹ฐ๋ธŒ - WebView ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ์กฐ์ž‘ & WebView์™€ ์•ฑ ๋ฉ”์‹œ์ง€ ์ „๋‹ฌ import * as React from 'react'; import { WebView } from 'react-native-webview'; import { StyleSheet } from 'react-native'; import Constants from 'expo-constants'; export default function App() { return ( {console.log(event.nativeEvent.data)}} /> ); } const styles = StyleSheet.create({ container: { flex: 1, marginTop: Constants.statusBarHeight, }, }); ์ฐธ๊ณ : https://docs.expo.dev/versions/latest/sdk.. 2022. 10. 21.
๋ฆฌ์•กํŠธ ๋„ค์ดํ‹ฐ๋ธŒ - MapView Marker ์‚ฌ์šฉ ์˜ˆ์ œ import * as React from 'react'; import MapView from 'react-native-maps'; import { StyleSheet, Text, View, Dimensions } from 'react-native'; export default function App() { return ( ); } const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#fff', alignItems: 'center', justifyContent: 'center', }, map: { width: Dimensions.get('window').width, height: Dimensions.get('window')... 2022. 10. 14.
๋ฆฌ์•กํŠธ ๋„ค์ดํ‹ฐ๋ธŒ - ์œ ์šฉํ•œ ์‚ฌ์ดํŠธ ๋ชจ์Œ ๋ฆฌ์•กํŠธ ๋„ค์ดํ‹ฐ๋ธŒ ๊ณต์‹ ๋ฌธ์„œ https://reactnative.dev/ React Native · Learn once, write anywhere A framework for building native apps using React reactnative.dev ์•ฑ์ด๋‚˜ ๋ธŒ๋ผ์šฐ์ €์—์„œ ๋ผ์ด๋ธŒ ์‹คํ–‰ ์ง€์›ํ•˜๋Š” ์‚ฌ์ดํŠธ https://snack.expo.dev/ Snack - React Native in the browser Write code in Expo's online editor and instantly use it on your phone. snack.expo.dev Expo SDK(์นด๋ฉ”๋ผ, ํด๋ฆฝ๋ณด๋“œ, ์˜ค๋””์˜ค ๊ด€๋ จ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ) https://docs.expo.dev/versions/latest/ API R.. 2022. 10. 10.
๋ฆฌ์•กํŠธ ๋„ค์ดํ‹ฐ๋ธŒ - Expo snack์—์„œ ํŒจํ‚ค์ง€ ์ถ”๊ฐ€ ๋ฐฉ๋ฒ• import { Camera } from 'expo-camera'; ์ด๋Ÿฐ ์‹์œผ๋กœ ์ƒˆ๋กœ์šด ํŒจํ‚ค์ง€๋ฅผ import ํ•˜๋ฉด ํ”„๋กœ์ ํŠธ ํŽ˜์ด์ง€ ๋งจ ์•„๋ž˜์— Add dependency๋ฉ”์‹œ์ง€๊ฐ€ ๋‚˜์˜ค๋Š”๋ฐ ์ด๊ฑธ ๋ˆ„๋ฅด๋ฉด ์ž๋™์œผ๋กœ ์ถ”๊ฐ€๋œ๋‹ค. dependencies์— ํŒจํ‚ค์ง€ ๋ช…์„ ์ถ”๊ฐ€ํ•˜๋Š” ๋ฐฉ์‹์ด๋ผ, expo-๋กœ ์‹œ์ž‘ํ•˜๋Š” ํŒจํ‚ค์ง€๋งŒ ์ง€์›์ด ๊ฐ€๋Šฅํ•œ ๊ฒƒ ๊ฐ™์Œ. ์ถœ์ฒ˜: https://stackoverflow.com/questions/68931393/how-to-add-add-new-packages-in-expo-snack How to add add new packages in expo snack? I want to use expo-av package in expo snack. However I know that after importing.. 2022. 10. 10.
React Native - ์ดˆ๊ธฐ ์„ค์น˜ [์ปดํ“จํ„ฐ์— ๊ฐœ๋ฐœ ํ™˜๊ฒฝ ์„ค์น˜ํ•˜๊ธฐ] https://reactnative.dev/docs/environment-setup Setting up the development environment · React Native This page will help you install and build your first React Native app. reactnative.dev npx react-native init SampleApp cd SampleApp npm run android ์ถœ์ฒ˜: https://dev-yakuza.posstree.com/ko/react-native/install-on-windows/ ์œˆ๋„์šฐ(Windows)์— react native ๊ฐœ๋ฐœ ํ™˜๊ฒฝ ๊ตฌ์ถ•ํ•˜๊ธฐ react-native๋กœ ์•ฑ์„ ๊ฐœ๋ฐœํ•˜๊ธฐ.. 2022. 4. 7.
728x90
๋ฐ˜์‘ํ˜•