onPress works only on debugging mode!
See original GitHub issueI’ve got an issue, The whole app i am building is only working on debugging mode, all the buttons and components that has onPress
not firing any event if i am not opening remote debugger, also its not working on the production for both android and iOS
React Native version: Environment: OS: macOS 10.14.4 Node: 10.15.3 Yarn: 1.10.0 npm: 6.4.1 Watchman: 4.9.0 Xcode: Xcode 10.2.1 Build version 10E1001 Android Studio: 3.2 AI-181.5540.7.32.5014246
Packages: (wanted => installed) react: 16.3.1 => 16.3.1 react-native: 0.55.4 => 0.55.4
Steps To Reproduce
- Run the app when Remote debugging mode is ON everything is working perfectly
- Run the app when remote debugging mode is
OFF
nothing firing events, everything is not working except scrolling
Snack, code example, or link to a repository:
Code Example:
<TouchableOpacity style={styles.touchable} onPress={() => console.log('Pressed!!')} > <Text> Press Me </Text> </TouchableOpacity>
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
@react-native-bot I did update React native and it still freezing, i wonder why i am replying to a bot 😄
clear all console.log or comment console.log…because debugger mode take console.log so …it will hang
this is work for me