Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29601

How to compare selected index of flatlist in next screen with integer number?

$
0
0

As I am a beginner, Very confused about comparison in react native. I have multiple different ImageArray like alphabets, fruits, birds etc. I want to load that according to selected index from flatlist like

if(selectedindex==1){
}
else if(selectedindex==2) 

and so on.

How can I do? Please Help.


Viewing all articles
Browse latest Browse all 29601

Trending Articles



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