목록ReactNative (16)
바르고 뜨겁게
React Native - Error: spawn ./gradlew EACCESreact-native run-android 실행시 아래와 같은 에러가 종종 발생된다. error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details. Error: spawn ./gradlew EACCES at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19) 접근 권한의 문제이며..
FlatList에 데이터가 많이 담기면 에러 로그도 없이 IOS 앱이 죽는 현상이 있음.(안드로이드는 문제 없음) FlatList 내에 아래 코드를 추가하면 해결 됨.
[IOS ERROR] Bundle Idenfifier 변경시 linker command failed with exit code 1 에러 IOS 에서 Bundle ID 변경시 빌드 중 inker command failed with exit code 1 에러가 발생된다. https://stackoverflow.com/questions/55109983/react-native-maps-call-api-request-when-onregionchange 몇가지 해결책이 있는데 Build Settings > Build Options > Enable Bitcode : No 로 변경시 해결이 가능하다. 방법 2상단 프로젝트 클릭New Scheme 선택새로운 스킴을 만들어서 해당 스킴에서 실행 방법 3xCode 에서 ne..
ReactNative - SoundPlayer 사용법패키지 추가https://www.npmjs.com/package/react-native-sound-playerimport SoundPlayer from 'react-native-sound-player';안드로이드사용할 음악 파일을 아래 경로에 위치 시킨다./android/app/src/main/res/raw/ring.mp3아이폰xCode 에서 위에 위치 시킨 파일을 스크린샷 처럼 추가 한다. 사용 try { SoundPlayer.loadSoundFile('dial', 'mp3'); SoundPlayer.play(); } catch (e) { console.log(`cannot play the sound file`, e) }
react-native webRTC normal arm64 Error리액트 네이티브에서 webRTC 패키지를 적용하고 아이폰에 빌드시 아래와 같은 에러가 난다.** BUILD FAILED ** The following build commands failed: Ld [프로젝트 경로] normal arm64 (1 failure)xCode 에서 좀 더 자세히 보면'[프로젝트 경로]' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. fil..
React-Native run-ios —device 빌드 에러react-native 에서 아이폰 장비로 빌드시 에러react-native run-ios --device [아이폰 장비 이름]error Failed to install the app on the device because we couldn't execute the "ios-deploy" command. Please install it by running "npm install -g ios-deploy" and try again. Run CLI with --verbose flag for more details.ios-deploy 설치 시도 또 에러sudo npm install -g ios-deploy** BUILD FAILED ** npm ..
setInterval 사용시 func.apply is not a function 에러자바스크립트에서는 함수 호출 자리에 함수의 이름이 아니라 함수명() 처럼 코딩시 정의된 함수가 즉시 호출되어 버린다.따라서 아래와 같이 코딩하면 func.apply is not a function 에러를 만나게 된다. 잘못된 사용법_myFunc = () => { ... } this._timerId = setInterval(this.myFunc(),1000);코드 실행시 즉시 1번 호출이 되고, 10초 뒤엔 func.apply is not a function 에러를 만나게 된다.의도는 myFunc() 함수를 10초마다 호출하여 실행하는 것이지만, 해결 방법_myFunc = () => { ... } this._time..
* navigation을 이용한 전달Req.jsnavigation.navigate("Res", { REQ_NO: "112233", REQ_DATA: "abcd" });Res.js const { navigation } = this.props; const REQ_NO = navigation.getParam("REQ_NO"); const REQ_DATA = navigation.getParam("REQ_DATA");
root 폴더에서 아래 명령어 입력cd android && ./gradlew signingReport 아래 정보들을 얻을 수 있다Variant , Config , Store , Alias , MD5 , SHA1 , SHA-256 , Valid. until
React native 에서 그림자 적용시안드로이드의 경우 elevation 값에 따른 그림자 변경만 허용하므로,아이폰과 안드로이드 두 플랫폼의 스타일을 각각 적용해야 한다. ...Platform.select({ ios: { shadowColor: "rgb(50, 50, 50)", shadowOpacity: 0.5, shadowRadius: 5, shadowOffset: { height: -1, width: 0 } }, android: { elevation: 5 } })