Closed
Description
Hi,
I'm experiencing a weird issue with the TouchableOpacity component. When I press the component nothing happens, it should hide the modal but nothing. What makes this more difficult to debug is that I can't debug remotely as the metro bundler just stops working.
This is an incredibly annoying bug, would somebody be able to help me, please.
<View style={{ flex: 1 }}>
<View style={{ position: "absolute", right: 0 }}>
<TouchableOpacity
onPress={() =>
this.setState({
error: "",
item: {},
isAllergicModalVisible: false
})
}
>
<MaterialCommunityIcons name="close-circle-outline" size={60} />
</TouchableOpacity>
</View>
Activity