Skip to content

Commit

Permalink
Add Real-time analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaminus committed Apr 13, 2018
1 parent 8272ffa commit e3157bf
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 10 deletions.
32 changes: 22 additions & 10 deletions src/screens/Home/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,16 +247,28 @@ class Home extends Component {
</View>
)}
{isPredictPage && (
<Button
buttonStyle={styles.loadButton}
containerStyle={{ flex: 0 }}
activeOpacity={0.8}
text={"Analyze an image"}
onPress={this._onClick}
textStyle={styles.loadTextButton}
loading={loading}
disabled={loading}
/>
<View>
<Button
buttonStyle={styles.loadButton}
containerStyle={{ flex: 0 }}
activeOpacity={0.8}
text={"Image analysis"}
onPress={this._onClick}
textStyle={styles.loadTextButton}
loading={loading}
disabled={loading}
/>
<Button
buttonStyle={styles.loadButton2}
containerStyle={{ flex: 0 }}
activeOpacity={0.8}
text={"Realtime analysis"}
onPress={this._onClick}
textStyle={styles.loadTextButton}
loading={loading}
disabled={loading}
/>
</View>
)}
</View>
</KeyboardAvoidingView>
Expand Down
7 changes: 7 additions & 0 deletions src/screens/Home/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ const styles = StyleSheet.create({
height: 50,
width: 200
},
loadButton2: {
backgroundColor: "rgba(232, 147, 142, 1)",
borderRadius: 10,
height: 50,
width: 200,
marginTop: 10
},
titleContainer: {
height: 280,
backgroundColor: "transparent",
Expand Down

0 comments on commit e3157bf

Please sign in to comment.