ReactNative

·ReactNative
1. Firebase 프로젝트 생성하기2. 프로젝트 추가하기3. Google Login 활성화4. 로그인 라이브러리 설치yarn add react-native-google-signinhttps://github.com/react-native-google-signin/google-signin react-native-google-signin/google-signinGoogle Sign-in for your React Native applications. Contribute to react-native-google-signin/google-signin development by creating an account on GitHub.github.com5. 코드 작성import React from 'react';i..
·ReactNative
1. npm 경로npm i react-native-get-locationhttps://www.npmjs.com/package/react-native-get-locationimport GetLocation from 'react-native-get-location'; GetLocation.getCurrentPosition({ enableHighAccuracy: true, timeout: 15000, }) .then((location) => { console.log(location.latitude, location.longitude); }) .catch((error) => { const {code, mess..
·ReactNative
1. 폰트파일을 프로젝트에 넣기 project/app/assets/fonts     2. 프로젝트 루트경로에 설정파일 추가하기react-native.config.js 생성module.exports = { assets: ['./app/assets/fonts'],};3. 폰트파일 링크하기react-native link4. 사용하기fontFamily: 'NotoSansKR-Bold'
·ReactNative
App.js  만들어진 탭바 다음은 svg 아이콘 넣기 yarn add react-native-svg yarn add --dev react-native-svg-transformerhttps://github.com/react-native-svg/react-native-svg        import IcMain from './assets/icons/main.svg';const MainIcon = () => ; import 후 변수만들기 그냥 넣으면 에러남....
엘포코
'ReactNative' 카테고리의 글 목록