From a25e8c90c5cb68991887cfa68cf9c2000cbda492 Mon Sep 17 00:00:00 2001 From: nicco Date: Thu, 30 Aug 2018 15:46:54 +0200 Subject: [PATCH] Added missing succes message and image --- src/rn/src/Screens/Scan.jsx | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/rn/src/Screens/Scan.jsx b/src/rn/src/Screens/Scan.jsx index 0c9acec..be7c4b8 100644 --- a/src/rn/src/Screens/Scan.jsx +++ b/src/rn/src/Screens/Scan.jsx @@ -1,8 +1,8 @@ -import React, {Component} from 'react' -import {Animated, StyleSheet, Text, View, Easing} from 'react-native' +import React, { Component } from 'react' +import { Animated, StyleSheet, Text, View, Easing } from 'react-native' import QRCodeScanner from 'react-native-qrcode-scanner' -import {Styles} from '../Helper' +import { Styles } from '../Helper' import BG from '../BG' export default class extends Component { @@ -14,7 +14,7 @@ export default class extends Component { constructor(props) { super(props) - this.state = {rotation: new Animated.Value(0)} + this.state = { rotation: new Animated.Value(0) } } componentDidMount() { @@ -32,7 +32,7 @@ export default class extends Component { gotCode(e) { const code = e.data - this.props.navigation.navigate('Success', {code}) + this.props.navigation.navigate('Success', { code }) } render() { @@ -45,12 +45,12 @@ export default class extends Component { return - this.gotCode(e)}/> - + this.gotCode(e)} /> + Scanning... @@ -65,8 +65,6 @@ const styles = StyleSheet.create({ padding: 20, borderColor: '#0ff', borderWidth: 1, - // width: 100, - // height: 100 }, space: { marginTop: 100,