TouchableWithoutFeedback only sometimes calls onPress on actual device while...
Just tested a simple UI on an actual iPhone that I had only built with the iOS simulator so far. Turns out that the iPhone only registers about 20% of my touches on buttons, while the simulator works...
View ArticleNested touchables in react native event propagation not working
I have a TouchableWithoutFeedback (child) with an onLongPress method inside a TouchableOpacity (parent) with an onPress method. What I want is that a regular press (not long press) on the child...
View ArticleWebview on Android can't be clicked if wrapped in Touchable
This is Android specific problem in react native app. To be more precise, this issue can be produced on Samsumg S6 Edge, Pixel 2 etc. and it works with other Android phones. I have a webview (which...
View ArticleHandling on press event for every word in long text rendered on the screen in...
I have a long text (for example, part of some book), and I need to render it on the screen but I need every word to handle touches. On touch I want to show the translation of this word. Is there any...
View ArticleReact Native UI Component Wrap in Touchable
I'm trying to detect when a user presses on a custom UI component I have written (it displays a video feed). I've tried using all the touchable components, and would ideally want to use the...
View ArticleMake a background Image disappear from button on button click,...
I have created an extremely large button with a giraffe head and a blue sky with clouds behind. I am wondering how when you click on the giraffe head you can make the image (sky behind) disappear and...
View ArticleReact native onPress with TouchableWithoutFeedback is not working
I am developing a simple React Native application for learning purpose. I am just taking my initial step to get into the React Native world. But in this very early stage, I am having problems. I...
View ArticleTouchableWithoutFeedback never fires touch events
I have the following React-Native code which alerts the user that it was pressed, however it does not respond to anything. I have tried using different Touchable components but none seem to work, the...
View ArticleReact Native: New screen after touching image using stack navigator
I am trying to learn React Native by creating an app. After I touch an image I want a new screen to be placed on top of the current screen. I think I want to use a StackNavigator after onPress? I've...
View ArticleHow do I use React Native onLongPress properly?
I have a simple piece of code that's just a TouchableOpacity with a onLongPress prop, but it does not seem to be working. <TouchableOpacity delayLongPress={10}...
View ArticleReact-Native Swipeout unable to swipe
Using the suggested example code found here https://github.com/dancormier/react-native-swipeout/blob/master/example/SwipeoutExample.js#L46 I am unable to swipe whenever I have TouchableWithoutFeedback...
View ArticleInvariant Violation: Invariant Violation: React.Children.only expected to...
When I use TouchableOpacity my code works fine, but when I use TouchableWithoutFeedback my code throws an error. As I don't want that blurred effect on click, I want to use TouchableWithoutFeedback...
View ArticleReact native Drag and drop animated.View onLongPress
I have circles I have to make these circles move in the space assigned to it and if the long pressure occurs on one of them, then it triggers an event. I did this, but it doesn't seem to work very...
View ArticleHow to avoid TouchableWithoutFeedback decrease opacity when pressed
Basically, I have a React Native code with TouchableWithoutFeedback which blinks when I press. I have a TouchableWithoutFeedback wrapping an Image component. When I pressIn changes the state changing...
View Articlereact-native TouchableNativeFeedback onPress not working
I have created a composed component to compose TouchableNativeFeedback to wrapperComponent. export default function withFeedback2( WrappedComponent ) { return class extends BaseComponent {...
View ArticleTouchableWithoutFeedback is throwing rendering error
I am developing a React Native application for learning purposes. Now I am using TouchableWithoutFeedback component to response the user interaction. But I am getting an error. Please see my code...
View ArticleButton is not showing over cardView in android but working in iOS in react...
I am creating a button over a cardView , It is working in iOS --But it is not working same in android , it is showing like--- My code is for creating this - <View> <Card...
View ArticleonPress handler not being fired over TouchableHighlight on Android
We are experiencing a weird issue. The thing is that when you press the button, for some reason the Highlight to the underlayColor is occurring but the Touchable is not firing the onPress handler. The...
View ArticleReact Native - Close modal when click out of it on IOS
I'm new to React Native. I've added a modal to my app and I want it to be closed when I click outside the modal. But nothing happens when I click out of the modal.Here is my codeimport React from...
View Articlereact native gifted chat stop scrolling with TouchableWithoutFeedBack
when i wrap GiftedChat withTouchableWithoutFeedBackGiftedChat scroll not workingthe scroll just work when i remove the view that wrap imageBackground but in this case the touchableWithoutFeedBack stop...
View Article