Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Question: TouchableOpacity onPress doesn't work #24442

Closed
AlexMachin1997 opened this issue Apr 13, 2019 · 1 comment
Closed

Question: TouchableOpacity onPress doesn't work #24442

AlexMachin1997 opened this issue Apr 13, 2019 · 1 comment
Labels
Component: TouchableOpacity Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot. Type: Question Issues that are actually questions and not bug reports.

Comments

@AlexMachin1997
Copy link

AlexMachin1997 commented Apr 13, 2019

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>
@AlexMachin1997 AlexMachin1997 added the Type: Question Issues that are actually questions and not bug reports. label Apr 13, 2019
@react-native-bot
Copy link
Collaborator

We are automatically closing this issue because it does not appear to follow any of the provided issue templates.

👉 Click here if you want to report a reproducible bug or regression in React Native.

@react-native-bot react-native-bot added Ran Commands One of our bots successfully processed a command. Resolution: No Template labels Apr 13, 2019
@facebook facebook locked as resolved and limited conversation to collaborators Apr 13, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Apr 13, 2020
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Component: TouchableOpacity Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot. Type: Question Issues that are actually questions and not bug reports.
Projects
None yet
Development

No branches or pull requests

2 participants