Skip to content
Snippets Groups Projects
Commit f804c89f authored by Andrea Magnussen's avatar Andrea Magnussen
Browse files

Merge branch '54-add-message-option-on-the-activity-indicatior' into 'master'

Resolve "Add message option on the activity indicatior"

Closes #54

See merge request !57
parents 2b5bb5dc 62b01cb6
No related branches found
No related tags found
1 merge request!57Resolve "Add message option on the activity indicatior"
import React from 'react'
import { StyleSheet, View, Modal } from 'react-native'
import { StyleSheet, View, Modal, Text } from 'react-native'
import { Colors, ActivityIndicator } from "react-native-paper";
const CustomActivityIndicator = (props) => {
......@@ -13,6 +13,9 @@ const CustomActivityIndicator = (props) => {
color={Colors.white}
size='large'
/>
<Text style={styles.text}>
{props.text}
</Text>
</View>
</Modal>
)
......@@ -35,5 +38,10 @@ const styles = StyleSheet.create({
alignItems: "center",
justifyContent: "center",
backgroundColor: `rgba(0,0,0,${0.1})`
},
text: {
alignContent: "center",
marginTop: 100,
color: 'white'
}
})
......@@ -101,6 +101,7 @@ const _CameraScreen = (props) => {
<View style={styles.takeImage}>
<CustomActivityIndicator
style={styles.activityIndicator}
text="Processing image. Please wait."
visible={showIndicator}
/>
<CustomImagePicker setImageUri={(uri) => setImage(uri)} />
......@@ -154,7 +155,7 @@ const _CameraScreen = (props) => {
)}
{image && (
<CustomButton
title="Start Image Processing"
title="Start Processing"
mode="contained"
style={styles.button}
onPress={() => {
......@@ -184,13 +185,7 @@ const styles = StyleSheet.create({
paddingTop: 25,
},
button: {
width: 150,
marginTop: 50,
marginBottom: 20,
alignSelf: "center",
},
button: {
width: 250,
width: 200,
marginTop: 50,
marginBottom: 20,
alignSelf: "center",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment