|
@ -75,28 +75,34 @@ function SharingFloodZonesScreen(props) { |
|
|
> |
|
|
> |
|
|
<View style={styles.imgs_container}> |
|
|
<View style={styles.imgs_container}> |
|
|
<TouchableNativeFeedback onPress={() => setPassable(1)}> |
|
|
<TouchableNativeFeedback onPress={() => setPassable(1)}> |
|
|
<View |
|
|
|
|
|
style={styles.img_block} |
|
|
|
|
|
borderColor={passable == 1 ? colors.primary : colors.white} |
|
|
|
|
|
> |
|
|
|
|
|
<Image |
|
|
|
|
|
style={styles.image} |
|
|
|
|
|
source={assets.floodZones.passable} |
|
|
|
|
|
/> |
|
|
|
|
|
<Text style={styles.text}>Transitável</Text> |
|
|
|
|
|
|
|
|
<View> |
|
|
|
|
|
{passable == 1 ? ( |
|
|
|
|
|
<Image |
|
|
|
|
|
source={assets.floodZones.passable_toggle} |
|
|
|
|
|
style={styles.image} |
|
|
|
|
|
/> |
|
|
|
|
|
) : ( |
|
|
|
|
|
<Image |
|
|
|
|
|
style={styles.image} |
|
|
|
|
|
source={assets.floodZones.passable_2} |
|
|
|
|
|
/> |
|
|
|
|
|
)} |
|
|
</View> |
|
|
</View> |
|
|
</TouchableNativeFeedback> |
|
|
</TouchableNativeFeedback> |
|
|
|
|
|
|
|
|
<TouchableNativeFeedback onPress={() => setPassable(0)}> |
|
|
<TouchableNativeFeedback onPress={() => setPassable(0)}> |
|
|
<View |
|
|
|
|
|
style={styles.img_block} |
|
|
|
|
|
borderColor={passable == 0 ? colors.primary : colors.white} |
|
|
|
|
|
> |
|
|
|
|
|
<Image |
|
|
|
|
|
style={styles.image} |
|
|
|
|
|
source={assets.floodZones.notPassable} |
|
|
|
|
|
/> |
|
|
|
|
|
<Text style={styles.text}>Intransitável</Text> |
|
|
|
|
|
|
|
|
<View style={styles.img_block}> |
|
|
|
|
|
{passable == 0 ? ( |
|
|
|
|
|
<Image |
|
|
|
|
|
source={assets.floodZones.notPassable_toggle} |
|
|
|
|
|
style={styles.image} |
|
|
|
|
|
/> |
|
|
|
|
|
) : ( |
|
|
|
|
|
<Image |
|
|
|
|
|
style={styles.image} |
|
|
|
|
|
source={assets.floodZones.notPassable2} |
|
|
|
|
|
/> |
|
|
|
|
|
)} |
|
|
</View> |
|
|
</View> |
|
|
</TouchableNativeFeedback> |
|
|
</TouchableNativeFeedback> |
|
|
</View> |
|
|
</View> |
|
@ -156,7 +162,7 @@ function SharingFloodZonesScreen(props) { |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
const borderWidth = 4; |
|
|
const borderWidth = 4; |
|
|
const dims = scaleDimsFromWidth(150, 80, 42.0); |
|
|
|
|
|
|
|
|
const dims = scaleDimsFromWidth(93, 106, 30.0); |
|
|
|
|
|
|
|
|
const styles = StyleSheet.create({ |
|
|
const styles = StyleSheet.create({ |
|
|
container: { |
|
|
container: { |
|
@ -165,22 +171,20 @@ const styles = StyleSheet.create({ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
image: { |
|
|
image: { |
|
|
width: dims.width * 0.9, |
|
|
|
|
|
height: dims.height * 0.9, |
|
|
|
|
|
|
|
|
width: dims.width, |
|
|
|
|
|
height: dims.height, |
|
|
resizeMode: "contain", |
|
|
resizeMode: "contain", |
|
|
}, |
|
|
}, |
|
|
img_block: { |
|
|
img_block: { |
|
|
borderRadius: 5, |
|
|
borderRadius: 5, |
|
|
padding: 10, |
|
|
|
|
|
borderStyle: "dotted", |
|
|
borderStyle: "dotted", |
|
|
borderColor: colors.white, |
|
|
borderColor: colors.white, |
|
|
borderWidth: borderWidth, |
|
|
borderWidth: borderWidth, |
|
|
alignItems: "center", |
|
|
alignItems: "center", |
|
|
width: dims.width, |
|
|
|
|
|
}, |
|
|
}, |
|
|
imgs_container: { |
|
|
imgs_container: { |
|
|
flexDirection: "row", |
|
|
flexDirection: "row", |
|
|
justifyContent: "space-between", |
|
|
|
|
|
|
|
|
justifyContent: "space-evenly", |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
text: { |
|
|
text: { |
|
|