
https://github.com/moaazsidat/react-native-qrcode-scanner#readme
npm install react-native-qrcode-scanner --save
npm install react-native-camera --save
npm install react-native-permissions --save
<key>NSCameraUsageDescription</key>
<string>기능 결과 등록을 위해서 카메라 사용이 필요합니다.</string>
<key>NSMicrophoneUsageDescription</key>
<string>기능 등록 및 수정을 위해서 당신의 마이크가 필요합니다.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>기능 결과 등록을 위해서 앨범 사용이 필요합니다.</string>
target 'cluemeticTests' do
inherit! :complete
# Pods for testing
end
#이거 아래 두줄 추가
permissions_path = '../node_modules/react-native-permissions/ios'
pod 'Permission-Camera', :path => "#{permissions_path}/Camera"
post_install do |installer|
android {
...
defaultConfig {
...
missingDimensionStrategy 'react-native-camera', 'general' //이거 넣음
}
}
<uses-permission android:name="android.permission.VIBRATE"/>
[!] No podspec found for Permission-Camerain../node_modules/react-native-permissions/ios/Camera``
이 에러는 내문제라기 보단 Permission 라이브러리의 호환성 문제일 가능성이 큼
버전을 3.0.0 으로 내리면 없어지는 문제임
Permission쪽에서 TypeError: Cannot read property 'request' of undefined 이런 에러가 뜨면 캐시 지우면 됨
xcode 관련 캐시 삭제
npm start --reset-cache