Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into main
Browse files Browse the repository at this point in the history
# Conflicts:
#	Flourish/Tabs/PhotoTabScreen.js
  • Loading branch information
EdwardHaoranLee committed Nov 8, 2020
2 parents 3c34915 + 5010ba7 commit 6c9d6fa
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions Flourish/Tabs/PhotoTabScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import React, { useState, useEffect } from 'react';
import { Button, View, Platform, StyleSheet, TouchableOpacity, Text, Image} from 'react-native';
import * as ImagePicker from 'expo-image-picker';
import { Camera} from 'expo-camera';
const PlantId = require('../Gateways/PlantIdentification')

export default function PhotoTabScreen() {



const [hasPermission, setHasPermission] = useState(null);
const [image, setImage] = useState(null);

Expand Down Expand Up @@ -40,7 +40,6 @@ export default function PhotoTabScreen() {
console.log(result);
if (!result.cancelled) {
setImage(result.path);

}};

return (
Expand Down Expand Up @@ -88,19 +87,15 @@ export default function PhotoTabScreen() {
return (
<View style={{flex: 1, justifyContent: 'center', alignItems: 'stretch', }}>
<View style={{flex: 1, justifyContent: 'center', alignItems: 'center'} }>
{image != null &&
<View>
<Camera style={{height: '100%', width: '100%', justifyContent: 'center', alignItems: 'center'}}/>
<View style={{flex: 1, flexDirection: 'row'}}>
<View style = {{flex:3}}>
<Library />
</View>
<View style = {{flex:3}}>
<TakePhoto />
</View>
<Camera style={{height: '100%', width: '100%', justifyContent: 'center', alignItems: 'center'}}/>
<View style={{flex: 1, flexDirection: 'row'}}>
<View style = {{flex:3}}>
<Library />
</View>
<View style = {{flex:3}}>
<TakePhoto />
</View>
}
</View>
</View>
</View>);
}

0 comments on commit 6c9d6fa

Please sign in to comment.