Browse Source

disabldisabling image input

master
analuizaff 3 years ago
parent
commit
79f19fe7e1
  1. 3
      src/app/components/ImageInput.js

3
src/app/components/ImageInput.js

@ -111,6 +111,8 @@ function ImageInput({ imageUri, onChangeImage }) {
{!imageUri && (
<TouchableOpacity
disabled={true}
activeOpacity={0.5}
onPress={() => {
setModalVisible(true);
}}
@ -254,6 +256,7 @@ const styles = StyleSheet.create({
alignItems: "center",
borderRadius: 6,
backgroundColor: colors.primary,
opacity: 0.4, //while button is disabled
},
});

Loading…
Cancel
Save