Quantcast
Channel: Active questions tagged touchablewithoutfeedback - Stack Overflow
Browsing all 46 articles
Browse latest View live
↧

React Children only expected to receive a single react child when using with...

In my application I have a text input, I want to hide the keyboard and lose focus whenever the user clicks anywhere on the screen or closes the keyboard.I created this function for this:interface...

View Article


React Native, TouchableOpacity alert get nothing

when i click on the button to open the toggle it works fine but when i want to click to display the alert i get nothing. any idea<View style={[styles.container,...

View Article


React Native TouchableWithoutFeedback on view with position absolute

I have a modal that I want show when the user clicks a i button.The modal envelops the entire screen, by setting the position to 'absolute'. This works fine, but when the user clicks somewhere on the...

View Article

React native useRef Hook wouldn't store an array

Here's a simple code that doesn't work I really don't know whyconst myArray = useRef(null) // or const myArray = useRef([]) or const myArray = useRef(new Array())...Inside the functional...

View Article

Image may be NSFW.
Clik here to view.

How can I focus on textinput when i click on TouchableWithoutFeedback?

I have a textinput. In this textinput, I have a letter "O" as an icon. I want textinput to be clickable when I press on "O" letter, how could i do that?For now it doesn't work, since i couldnt add this...

View Article


Cypress - Overlay not popping up when button is clicked

Description:I am currently trying to write an automated test that involves clicking on a button within a navigation bar. The expected behavior is that an overlay that contains more links would pop up,...

View Article

TouchableWithoutFeedback from react-native-gesture-handler breaks jest/enzyme...

I was using TouchableWithoutFeedback from 'react-native', but I was having issues with that on android in absolute container, as clicks were not working, so I switched to the similar component from...

View Article

In React native for drag and drop individual list item,...

I have a list of items, i can select any list item with long press and drag it over an icon for delete. I am using PanResponder for this. now in this part the first crucial step that is long press...

View Article


Unable to position an icon on top of container with elevation

I am trying to create a container with some info inside and a close button in the corner. The container itself has some elevation and contains a TouchableWithoutFeedback element, as does the close...

View Article


Unable to click on dropdown picker inside a TouchableWithoutFeedback

I am trying to implement a dropdown picker using react-native-dropdown-picker inside an elevated TouchableWithoutFeedback container. However whenever I click on an item inside the picker, instead...

View Article

TouchableOpacity outside parent View in absolute positive not works react native

I was making Picker component but what I found is Touchable Opacity in absolute positions outside from it's parent view not works.const App = () => { const data = [2, 3, 4, 23] const [isOpen,...

View Article

Image may be NSFW.
Clik here to view.

Differences between Pressable and TouchableWithoutFeedback

Pressable and TouchableWithoutFeedback are higher order components to add touch functionality to their children. They have very similar use cases. I guess I can use Pressable anywhere in place of...

View Article

React Native allow Touchable components to respond to onPress when wrapped in...

I want to allow the user to touch anywhere on the screen to dismiss the keyboard, but still allow interaction with Buttons. My code looks something like:<TouchableWithoutFeedback...

View Article


How to make text selection work when inside view and is inside...

I have a situation where I have a post, post has content in it, when user clicks on post's content on the home user should be redirected to another page and user is also able to select the text on the...

View Article

Nested 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 Article


Webview 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 Article

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 Article


Image may be NSFW.
Clik here to view.

How to avoid onPress function works inside the inner Views in React-Native

I want to avoid the onPress={() => onRequestClose()} function working inside the inner View in my react-native project.While user click on the screen the (whatever the area) onPress={() =>...

View Article

--- Article Not Found! ---

*** *** *** RSSing Note: Article is missing! We don't know where we put it!!. *** ***

View Article

React-native Keyboard.dismiss dismisses the keyboard when using it

i am trying to use Keyboard.dismiss() inside of a TouchableWithoutFeedback element and for some reason, no matter where i place this TouchableWithoutFeedback element, the keyboard doesn't dismiss when...

View Article
Browsing all 46 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>