Depend on core and native

This commit is contained in:
Brent Vatne
2018-10-12 11:23:17 -07:00
parent 8b509dd525
commit 81f1915075
19 changed files with 721 additions and 693 deletions

View File

@@ -8,8 +8,11 @@ import {
StyleSheet,
} from 'react-native';
import { MapView } from 'expo';
import { createStackNavigator, withNavigationFocus } from 'react-navigation';
import { StackGestureContext } from 'react-navigation-stack';
import { withNavigationFocus } from 'react-navigation';
import {
createStackNavigator,
StackGestureContext,
} from 'react-navigation-stack';
import {
PanGestureHandler,
NativeViewGestureHandler,

View File

@@ -1,7 +1,14 @@
import React from 'react';
import { ActivityIndicator, Button, Text, View, StyleSheet } from 'react-native';
import {
ActivityIndicator,
Button,
Text,
View,
StyleSheet,
} from 'react-native';
import { BarCodeScanner } from 'expo';
import { createStackNavigator, withNavigationFocus } from 'react-navigation';
import { withNavigationFocus } from 'react-navigation';
import { createStackNavigator } from 'react-navigation-stack';
const IndexScreen = ({ navigation }) => (
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
@@ -31,7 +38,9 @@ class BarCodeScreen extends React.Component {
return (
<View style={{ flex: 1 }}>
<BarCodeScanner
onBarCodeScanned={this.props.isFocused ? this.handleBarCodeScanned : null}
onBarCodeScanned={
this.props.isFocused ? this.handleBarCodeScanned : null
}
style={StyleSheet.absoluteFill}
/>
</View>