반응형 SMALL 개발/React Native25 [에러] pod install --repo-update m1 이슈 1. 상황 설명pod isntall 시 버전 문제가 발생pod install --repo-update 를 시도해보라는 메시지가 있음. 시도를 하면[!] CocoaPods could not find compatible versions for pod "Firebase/Auth": In Podfile: RNFBAuth (from `../node_modules/@react-native-firebase/auth`) was resolved to 16.4.6, which depends on Firebase/Auth (= 10.2.0)None of your spec sources contain a spec satisfying the dependency: `Firebase/Auth (= 10.2.0)`... 2024. 5. 7. [React Native] Text에서 특정 글자만 색상(스타일) 변경하기. import React from 'react'; import {Text, StyleSheet} from 'react-native'; export const test = () => { return ( 안녕하세요 제 이름은 000입니다. ); }; const styles = StyleSheet.create({ text: { color: 'red', fontWeight: 'bold', }, }; 2023. 7. 6. Android Emulator에서 FoldablePhone 해상도 테스트하기 1. Download FoldableEmulator.apk 2. 안드로이드 에뮬레이터를 실행시킨 뒤, 터미널에서 Install apk 하기. adb install FoldableEmulator.apk 3. terminal을 열고 grand permission adb shell pm grant com.samsung.android.foldable.emulator android.permission.WRITE_SECURE_SETTINGS pm grant com.samsung.android.foldable.emulator android.permission.SYSTEM_ALERT_WINDOW => 순서대로 터미널에 복붙해주세요~ 그러면 안드로이드 에뮬레이터에서 FoldableEmulator 어플이 생성된 것을 확인.. 2023. 7. 4. React Native 화면 크기별로 폰트 사이즈 변경하기 import {Dimensions} from 'react-native'; const dHeihgt = Dimensions.get('window').heihgt; //화면의 높이 const dWidth = Dimensions.get('window').width; //화면의 너비 const styles = StyleSheet.create({ sectionSubtitle: { //화면 너비가 500보다 크면 22, 아니면 18 fontSize: dWidth > 500 ? 22 : 18, ... }, ... }) 비율대로 크기를 조정하려면 화면 너비를 24로 나눈 값을 사용하면 된다. fontSize: Dimensions.get('window').width / 24; 이런식으로도 해봤는데 그러면 태블릿에서 글자.. 2023. 7. 4. 이전 1 2 3 4 5 ··· 7 다음 반응형 LIST