전체 글 (34) 썸네일형 리스트형 <Image /> - React Native, Next.js React Native에서 Image 로 아이콘설치 예//import { View, Text, Image, Platform } from "react-native";특히 아이콘의 크기 조절 목적으로 resizeMode 를 많이 쓰게 됨cover: Scale the image uniformly (maintain the image's aspect ratio) so thatboth dimensions (width and height) of the image will be equal to or larger than the corresponding dimension of the view (minus padding)at least one dimension of the scaled image will be equal .. TypeScript 와 JavaScript 혼용 결론 부터 이야기 하면, "가능" 합니다. Expo React Native 프로젝트에서는 TypeScript(.tsx) 파일과 JavaScript(.js) 파일을 혼용하여 작업할 수 있습니다. TypeScript와 JavaScript 파일을 혼용하여 작업하는 것은 컴파일러 및 빌드 시스템에 문제를 일으키지 않습니다. Expo는 내부적으로 Babel을 사용하여 TypeScript 파일을 JavaScript로 변환하므로 TypeScript와 JavaScript를 혼용하여 사용하는 것은 문제가 되지 않습니다. 기존에 JavaScript 파일이 있거나 특정 파일이 타입스크립트로 변환하는 데 시간이 많이 소요될 수 있다면 JavaScript 파일을 계속 사용할 수 있습니다. Drawer - Expo router v3 - SDK50 expo router V3 template 로 설치를 하고, Drawer Navigation 효과를 내려면, Documents에서 처럼 아래 3가지 추가 라이브러리를 설치하고도 몇가지 경험을 적어 봅니다. Docs 참고(https://docs.expo.dev/router/advanced/drawer/) npx expo install @react-navigation/drawer react-native-gesture-handler react-native-reanimated 경험상 문제는 babel.config.js 에 다음 처럼 수정합니다. module.exports = function (api) { api.cache(true); return { presets: ['babel-preset-expo'], pl.. 이전 1 2 3 4 5 6 ··· 12 다음