Skip to content

Commit e3157bf

Browse files
committed
Add Real-time analysis
1 parent 8272ffa commit e3157bf

File tree

2 files changed

+29
-10
lines changed

2 files changed

+29
-10
lines changed

src/screens/Home/index.js

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -247,16 +247,28 @@ class Home extends Component {
247247
</View>
248248
)}
249249
{isPredictPage && (
250-
<Button
251-
buttonStyle={styles.loadButton}
252-
containerStyle={{ flex: 0 }}
253-
activeOpacity={0.8}
254-
text={"Analyze an image"}
255-
onPress={this._onClick}
256-
textStyle={styles.loadTextButton}
257-
loading={loading}
258-
disabled={loading}
259-
/>
250+
<View>
251+
<Button
252+
buttonStyle={styles.loadButton}
253+
containerStyle={{ flex: 0 }}
254+
activeOpacity={0.8}
255+
text={"Image analysis"}
256+
onPress={this._onClick}
257+
textStyle={styles.loadTextButton}
258+
loading={loading}
259+
disabled={loading}
260+
/>
261+
<Button
262+
buttonStyle={styles.loadButton2}
263+
containerStyle={{ flex: 0 }}
264+
activeOpacity={0.8}
265+
text={"Realtime analysis"}
266+
onPress={this._onClick}
267+
textStyle={styles.loadTextButton}
268+
loading={loading}
269+
disabled={loading}
270+
/>
271+
</View>
260272
)}
261273
</View>
262274
</KeyboardAvoidingView>

src/screens/Home/styles.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ const styles = StyleSheet.create({
4242
height: 50,
4343
width: 200
4444
},
45+
loadButton2: {
46+
backgroundColor: "rgba(232, 147, 142, 1)",
47+
borderRadius: 10,
48+
height: 50,
49+
width: 200,
50+
marginTop: 10
51+
},
4552
titleContainer: {
4653
height: 280,
4754
backgroundColor: "transparent",

0 commit comments

Comments
 (0)