mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
missing file
This commit is contained in:
parent
54c71c0ee1
commit
7de11a495e
@ -16,7 +16,7 @@ export default class CameraExample extends React.Component {
|
||||
type: Camera.Constants.Type.back,
|
||||
};
|
||||
|
||||
async onBarCodeRead(ret) {
|
||||
async onBarCodeScanned(ret) {
|
||||
if (this.ignoreRead) return;
|
||||
this.ignoreRead = true;
|
||||
setTimeout(() => {
|
||||
@ -28,7 +28,6 @@ export default class CameraExample extends React.Component {
|
||||
} // end
|
||||
|
||||
async componentWillMount() {
|
||||
console.warn('here')
|
||||
const { status } = await Permissions.askAsync(Permissions.CAMERA);
|
||||
this.setState({
|
||||
hasCameraPermission: status === 'granted',
|
||||
@ -56,7 +55,7 @@ export default class CameraExample extends React.Component {
|
||||
} else {
|
||||
return (
|
||||
<View style={{ flex: 1 }}>
|
||||
<Camera style={{ flex: 1 }} type={this.state.type} onBarCodeRead={ret => this.onBarCodeRead(ret)}>
|
||||
<Camera style={{ flex: 1 }} type={this.state.type} onBarCodeScanned={ret => this.onBarCodeScanned(ret)}>
|
||||
<View
|
||||
style={{
|
||||
flex: 1,
|
||||
|
Loading…
Reference in New Issue
Block a user