Skip to content

Commit

Permalink
fixed react-native-camera update to 1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasywind committed Oct 27, 2018
1 parent 366e724 commit dae45cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,7 @@ export default class QRCodeScanner extends Component {
title: this.props.permissionDialogTitle,
message: this.props.permissionDialogMessage,
}).then(granted => {
const isAuthorized =
Platform.Version >= 23
? granted === PermissionsAndroid.RESULTS.GRANTED
: granted === true;
const isAuthorized = granted === PermissionsAndroid.RESULTS.GRANTED || granted === true;

this.setState({ isAuthorized, isAuthorizationChecked: true });
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"prettier": "^1.12.1"
},
"peerDependencies": {
"react-native-camera": "^1.0.2"
"react-native-camera": "^1.3.1"
},
"homepage": "https://github.com/moaazsidat/react-native-qrcode-scanner#readme",
"lint-staged": {
Expand Down

0 comments on commit dae45cb

Please sign in to comment.