This file was deleted.

@@ -18,8 +18,8 @@
"babel-jest": "23.0.1",
"babel-preset-react-native": "4.0.0",
"jest": "^23.1.0",
"react-test-renderer": "16.3.1",
"react-native-navigation": "^2.0.2354"
"react-native-navigation": "^1.1.471",
"react-test-renderer": "16.3.1"
},
"jest": {
"preset": "react-native"
@@ -1,4 +1,4 @@
import React, { Component } from 'react';
import React, { PureComponent } from 'react';
import { Platform, StyleSheet } from 'react-native';
import {View, TextInput, Text, Button} from 'react-native-ui-lib';
import { Header } from '../components/Header';
@@ -13,12 +13,12 @@ const instructions = Platform.select({
'\nDo you have what it takes?\n\n',
});

class HomeScreen extends Component {
export default class HomeScreen extends PureComponent {

showCameraScreen = () => {
Navigation.push(this.props.componentId, {
component: {name: 'Camera'}
});
showCameraScreen = (string) => {
this.props.navigator.push({
screen: string
});
};

render() {
@@ -38,7 +38,7 @@ class HomeScreen extends Component {
<View bottom>
<Button
label="Start"
onPress={() => this.showCameraScreen()}
onPress={() => this.showCameraScreen('Camera')}
/>
</View>
</View>
@@ -66,4 +66,3 @@ const styles = StyleSheet.create({
},
});

export default HomeScreen;
@@ -1,25 +1,14 @@
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
TouchableOpacity
} from 'react-native';
import { Platform, StyleSheet, TouchableOpacity} from 'react-native';
import {View, TextInput, Text, Button} from 'react-native-ui-lib';
import { RNCamera } from 'react-native-camera';


const instructions = Platform.select({
ios: 'are you ready?,\n' +
'Do not blink!',
android: 'Challenge you friends, make them cry!\n' +
'\nDo you have what it takes?\n\n',
});

type Props = {};
class Camera extends Component<Props> {
render() {
return (
<View style={styles.container}>
<View>
<RNCamera
ref={ref => {
this.camera = ref;