Questions tagged [touchablehighlight]

59 questions
0
votes
2 answers

How to make below shown picture like style using TouchableNativeFeedback in React Native?

I am attaching two images, one showing the current view and other showing the view that i want it to be. You can see in the above images, in the first image, the highlighted area is a rectangle whereas in the second one, it is a rounded…
0
votes
1 answer

Touchable Highlight desconfigures Image in React Native

I'm facing a problem involving Touchable Highlights and Images in React Native. When I don't use the TH (Touchable Highlight) my Image's styles work perfectly.1 But when I add a TH to work on Navigation in my app, the Image desconfigures totally,…
0
votes
1 answer

How to make image as toggle button to show two different images in react native

I am doing react native project. In that, I have to show custom image like toggle button, In that, for OFF one image and ON another image I have to display, And in that, two components should have to display according to ON/OFF states. I am new to…
0
votes
0 answers

Custom button using touchable highlight: area of touchable highlight larger than image

I'm trying to create custom buttons with assets that I've been sent by the designer. I want to use touchable highlight to create the buttons with the images in them.
Alia Hassan
  • 137
  • 4
  • 10
0
votes
1 answer

React-native dynamically generated TouchableHighlight with image

I have a form which the user can select one of three options for membership. I an render the screen correctly but the button toggle isn't working. When I click on the other buttons the tick still stays on the first option. Here is my code
dogwasstar
  • 852
  • 3
  • 16
  • 31
0
votes
1 answer

How to change button color when pressed in React Native using TouchableHighlight?

I am currently developing an application, and I am having trouble figuring out how to get the button to change color after being pressed using TouchableHighlight. Not to be confused with the underlayColor prop which I know exists as part of…
0
votes
1 answer

React Native chagne image source on button click

Hi I am trying to change image on a button click but cant seem to get the image to change. Here is my code. constructor(){ super() this.state = { autologin_active: true } } toggleAutoLogin(){ this.state.autologin_active =…
dogwasstar
  • 852
  • 3
  • 16
  • 31
0
votes
1 answer

How to disable the touch actions while the other touch event performs in React native?

I am displaying the list item using index values along with a button while I click on the button in one of the list item index other list items should be displaying as disabled. Will it be possible?
0
votes
1 answer

TouchableXXX will auto triggered when app start in reactnative

I am trying to wrap touchable items following this tortial And the problem I found is that the navigation will be auto trigger by the launch of the app, it will navigate to the detail page without press on it. And when navigate back, the touchable…
armnotstrong
  • 8,605
  • 16
  • 65
  • 130
0
votes
1 answer

React-native: tvOS How to set focus on specific item in list view?

I write an tvOS app with react native and I have few list view, I want to set focus on specific item in list view ? It is possible ?
user7917760
0
votes
1 answer

React Native - how to change style and image of a view onPress

I have three TouchableHighlight elements wrapping three views (aligned next to each other). Onpress I would like to change the style (backgroundColor) and image of the view (the pressed view would become active). active view - backgroundColor
John
  • 3,529
  • 14
  • 42
  • 48
0
votes
2 answers

TouchableHighlight inside a list Item, inside ListView does not heightlight

Every list item has 2 buttons: buttons worked when not inside a listView. but, when inside a list item inside a list view, they do not highlight, is there something I'm missing? List view: return (
MCMatan
  • 8,623
  • 6
  • 46
  • 85
-1
votes
1 answer

Custom a touchable text like See more

I am writing a react native app. I want to make a press. See more like we usually see for more information of something. How can I do that? Like here
-1
votes
2 answers

React-native: tvOS How to force a TouchableHighlight to be focused?

I write a tvOS app and I want to force a TouchableHighlight to be focused when the user tap on a specific on a specific button like 'up', 'down'... on the remote Thanking you in advance
user7917760
1 2 3
4