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

Loading…
Cancel
Save