모바일 APP/React-Native49 IOS 커스텀 폰트 적용 안될때 react-native 0.60 이상 버전에서는 react-native.config.js 파일을 생성한 후에 module.exports = { project: { ios: {}, android: {}, // grouped into "project" }, assets: ["./src/assets/fonts/"], // 당신의 font 파일들이 모여있는 폴더 }; 위와 같이 적어준후 react-native link 명령을 사용하면 자동으로 안드로이드와 ios 둘다 폰트 사용할수 있는 환경이 만들어 진다. ios폴더에 AppDelegate.m 파일을 열어 아래 코드 내용을 추가해준다. for (NSString* family in [UIFont familyNames]) { NSLog(@"%@", family);.. 2021. 8. 30. 기능 개발간 유용한 사이트 json으로 동적 컴포넌트 만들기 https://www.storyblok.com/tp/react-dynamic-component-from-json How to render dynamic component defined in JSON using React With React it is easy to render dynamic components utilizing JSX and React.createElement, which we can utilize to render content with specific components and layouts by only using their name. www.storyblok.com 커스텀 폰트 적용하기 https://dev-yakuza.posstree.com/ko.. 2021. 8. 30. 공휴일 제외하는 함수 만들기 const ExceptWeekend = () => { const today = new Date() let yesterDay = new Date(today.setDate(today.getDate() - 1)) if (yesterDay.getDay() === 0) { yesterDay = new Date(today.setDate(today.getDate() - 2)) } else if (yesterDay.getDay() === 6) { yesterDay = new Date(today.setDate(today.getDate() - 1)) } console.log('!!!', yesterDay) } 2021. 8. 24. 아이폰 시뮬레이터 command + D 안될때 시뮬레이터 메뉴에서 I/O -> Input -> Send Keyboard Input to Device 활성화 2021. 8. 15. 이전 1 ··· 6 7 8 9 10 11 12 13 다음 반응형