mirror of
https://github.com/cupcakearmy/fight-of-the-mobiles.git
synced 2024-12-23 00:16:28 +00:00
removed unused code
This commit is contained in:
parent
a25e8c90c5
commit
57c78c6e9c
@ -1,5 +1,5 @@
|
||||
import React, { Component } from 'react'
|
||||
import {StyleSheet, Text, View} from 'react-native'
|
||||
import { StyleSheet, Text, View, Image } from 'react-native'
|
||||
import * as PushNotification from 'react-native-push-notification'
|
||||
|
||||
import { Styles } from '../Helper'
|
||||
@ -21,9 +21,11 @@ export default class extends Component {
|
||||
this.state = { code }
|
||||
|
||||
if (code === undefined) navigation.navigate('scan')
|
||||
else PushNotification.localNotification({
|
||||
else PushNotification.localNotificationSchedule({
|
||||
id: 0,
|
||||
title: '🚀 Scan succeded!',
|
||||
message: `Your super sercret code is: ${code}`,
|
||||
date: new Date(Date.now() + (5 * 1000))
|
||||
})
|
||||
}
|
||||
|
||||
@ -32,11 +34,29 @@ export default class extends Component {
|
||||
|
||||
return <BG>
|
||||
<View style={Styles.center}>
|
||||
<View>
|
||||
<QRButton text={'Back'} callback={() => navigate('Home')} />
|
||||
<Text>{this.state.code}</Text>
|
||||
</View>
|
||||
<Text style={{ ...styles.bold, ...styles.space }}>Success</Text>
|
||||
<Image
|
||||
resizeMode="contain"
|
||||
style={styles.image}
|
||||
source={require('../../assets/images/check.png')}
|
||||
/>
|
||||
|
||||
</View>
|
||||
</BG>
|
||||
}
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
space: {
|
||||
paddingTop: 100,
|
||||
},
|
||||
bold: {
|
||||
fontWeight: 'bold',
|
||||
},
|
||||
image: {
|
||||
width: 32,
|
||||
height: 32,
|
||||
margin: 16,
|
||||
},
|
||||
})
|
Loading…
Reference in New Issue
Block a user