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

React Native DropdownPicker doesn't expands in horizontal scrollview in ios

$
0
0

The requirement is having 2-3 search filters along with a dropdown state selection inside and horizontal scrollview and a flatlist below the horizontal scrollview with its item selectable.

Case1:Horizontal Scrollview in react native takes static height and the dropdown picker doesn't gets expanded inside the view until some specific height is provided as such minheight:215

Case 2: If a specific height is provided to horizontal scrollview by default it takes that specific mentioned gap for say a height fixed with 215 but i don't need extra space beneath the horizontal scrollview

Case 3: If the horizontal scrollview with some specific height is provided a position:"absolute",there is no gap and the dropdown picker works well but the dropdown picker height blocks the flatlist beneath it i.e the space till 215 height the flatlist item doesn't gets clicked.

Have tried providing flexGrow:1 to contentContainerStyle but that doesn't seems to be working

Case1 code on snack

Case3 code on snack The requirement is exactly this, the issue is flatlist item covered by dropdown picker height isn't getting clicked here.

This overlay issue is only in ios and works fine in android

Please help me on this !!


Viewing all articles
Browse latest Browse all 16750

Trending Articles



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