Questions tagged [onpress]
156 questions
-1
votes
0 answers
Clickable a part of a photo
How to make a part of a photo clickable in React Native?
For example, if we want to go to one page by clicking on half of the photo and enter another page by clicking on the other half of the photo,
As in web design, we do this by specifying the…

شهاب صابرنیا
- 1
- 1
-1
votes
1 answer
React Native TouchableOpacity when I click, change color or Opacity
firstable, I'm korean. I'm not good at eng.
so plz understand me about garmmar or word.
anyway,
now I use TouchableOpacity,
and I want to change the brightness when I push the button like the photo.
enter image description here
(I dont need…

정혜주
- 1
- 5
-1
votes
1 answer
What to do If I can't assign Future functions to onPressed in flutter?
I have a proplem in assigning a sign in future method to onpressed :The argument type 'Future' can't be assigned to the parameter type 'void Function()'.

Omar Yacop
- 37
- 1
- 9
-2
votes
3 answers
How to go same screen with different data from React native flat List
I'm new in React Native and I've FlatList with some items I want to use code like when I click any item on the flat list a screen open and shows data of that item related.When I click on another item same screen open but with data related to that…

Zaid Qureshi
- 611
- 10
- 19
-2
votes
1 answer
Duplicate click react native
I have a problem when user spam click/tap on a button/TouchableOpacity in react native.
Ex: tap to navigate another screen
How can i fix that?
Function
onItemPress(title) {
this.props.navigation.navigate(title.toLowerCase(), { title…

monkey luffy
- 7
- 4
-3
votes
3 answers
Generate a random number and add to an array to be rendered in React Native
I have written some basic JS code in React Native to generate a random number then render the number. I would now like to add every generated number to a list.
Currently the generated random number can be added to a list, to do this I need to first…

tpies
- 1
- 1