Big Sur 업데이트후에 React-Native Android Gradle 빌드시 아래와 같은 에러가 발생한다. * What went wrong: Execution failed for task ':react-native-community_async-storage:compileDebugJavaWithJavac'. > Could not find tools.jar. Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation. 해결 방법 : gradle.properties 파일에 아래 내용 기입 - 개발환경이 Mac인 경우 아래 경로에 자신의 Java버전에 맞는..
iOS 프로젝트에 main.jsbundle 파일이 생기지 않아서 발생하는 오류를 해결하고자 합니다. 순서는 다음과 같습니다. 1. 프로젝트 안에 package.json 파일을 엽니다. 2. scripts안에 아래 문구를 넣습니다. "build:ios": "react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios'" 3. 아래 명령어를 실행합니다. npm run build:ios 4. 파일이 생성됩니다. 5. XCode상에서 파일을 추가 합니다.
현재 아이폰 앱심사시 Apple 로그인을 넣지 않으면 리젝 시키겠다는 강력한 Apple의지로 인해 울며 겨자 먹기로 구현해야 합니다. React Native에서 연동 부분을 설명하고자 합니다. 1. 관련된 라이브러리를 다운받으세요. % yarn add @invertase/react-native-apple-authentication yarn add v1.22.4 info No lockfile found. [1/4] 🔍 Resolving packages... [2/4] 🚚 Fetching packages... [3/4] 🔗 Linking dependencies... [4/4] 🔨 Building fresh packages... success Saved lockfile. success Saved 1 new d..
ReactNative 개발하면서 가장 신경이 쓰이는 것이 화면간 데이터를 주고 받는 부분입니다. 이 부분에 좀더 효과적으로 대응하기 위해서 Context 개념을 적용하여 모든 화면에서 데이터가 공유될수 있도록 구현해보았습니다. 샘플코드는 아래 링크를 참조하세요. https://github.com/leeyonghe/ReactNativeApp leeyonghe/ReactNativeApp Contribute to leeyonghe/ReactNativeApp development by creating an account on GitHub. github.com Context는 React or React Native 컴포넌트 트리 안에서 전역적(global)이라고 볼 수 있는 데이터를 공유할 수 있도록 고안된 방법..