我正在尝试在我的应用中设置Expo的BarCodeScanner。 -https://www.npmjs.com/package/expo-barcode-scanner
我遇到了多个错误,这些错误似乎可以通过使用以下方式解决:
npm我的展览许可
npm我babel-preset-expo
{
"name": "empty-project-template",
"private": true,
"scripts": {
"start": "react-native start",
"android": "react-native run-android",
"ios": "react-native run-ios"
},
"dependencies": {
"@babel/runtime": "^7.2.0",
"babel-jest": "^23.6.0",
"babel-preset-expo": "^5.0.0",
"blinkid-react-native": "^4.5.0",
"expo-barcode-scanner": "^1.1.0",
"expo-permissions": "^1.0.2",
"expo-react-native-adapter": "^1.0.2",
"firebase": "^5.5.4",
"native-base": "^2.8.1",
"react": "16.3.1",
"react-native": "^0.55.4",
"react-native-credit-card-input": "^0.4.1",
"react-native-date-picker": "^2.2.1",
"react-native-datepicker": "^1.7.2",
"react-native-elements": "^0.19.1",
"react-native-image-crop-picker": "^0.21.2",
"react-native-image-picker": "^0.27.2",
"react-native-maps": "^0.22.1",
"react-native-modal-datetime-picker": "^6.0.0",
"react-native-photo-upload": "^1.3.0",
"react-native-super-grid": "^2.4.3",
"react-native-vector-icons": "^6.1.0",
"react-navigation": "^2.18.0"
},
"devDependencies": {
"@babel/core": "^7.2.2",
"babel-core": "^7.0.0-0",
"babel-loader": "^8.0.4",
"babel-preset-react-native-stage-0": "^1.0.1"
}
}
现在,出于测试原因,我已经复制并粘贴了Expo提供的一些示例代码。