React-native(8)
-
React-native-iap (인앱결제 모듈 간단하게 메서드 정리)
getInstallSourceAndroid param x initConnection param x 구매 흐름을 위한 init 모듈. Android에서는 필수. ios에서는 사용자가 결제할 수 있는지 확인 endConnection = 안드로이드 param x 구매 흐름을 위한 엔드 모듈 flushFailedPurchasesCachedAsPendingAndroid = 안드로이드만 지원 param x 이미 실패했지만 Play Store 캐시에 보류 중으로 표시된 보류 중인 결제를 사용 getProducts param (skus: string[]) 제품 목록 가져오기(소비 및 비소모 품목, 구독 제외) getSubscriptions param (skus: string[]) 구독 목록 가져오기 getPurchas..
2023.04.24 -
React-native에서의 폰트 세팅
-android 프로젝트 디렉토리에서 android/app/src/main/assets/fonts 폴더를 생성한 후 다운로드 받은 폰트 파일을 추가한다 사용방법 // styled-component const MainText = styled.Text` font-family: "NotoSansKR-Bold"; `; -ios 프로젝트 디렉토리에서 ios 폴더에 Fonts 폴더를 생성하고 해당 폴더에 사용할 폰트 파일을 넣어준다 (otf,ttf) ios/project_name.xcodeproj이나 ios/project_name.xcworkspace을 실행하여 xcode를 실행 자신의 프로젝트에서 우클릭하여 Add Files to ‘프로젝트이름’ 클릭 ios/Fonts 폴더를 선택 -> Create folder ..
2023.04.24