deanmcpherson / react-native-sortable-listview

Drag drop capable wrapper of ListView for React Native
MIT License
917 stars 236 forks source link

List of items initially not rendering (iOS) #173

Open JeremyBradshaw7 opened 5 years ago

JeremyBradshaw7 commented 5 years ago

Since upgrading to RN 0.59.10, I'm finding quite often the list of items do not initially show at all, though space for them is taken up, but manually scrolling the container seems to make them suddenly appear. Anyone else with this issue and is there a workaround? Using version 0.2.9. Problem on iOS only.

JeremyBradshaw7 commented 5 years ago

Only workaround I've found is to scroll the container programatically on a timeout from componentDidMount (timeout can be 0, forces a render cycle after mounting).

Edit: this doesn't actually always work, issue is still occurring but less frequently.

No-one else with this issue? May have to drop this component if no resolution.

alekstorm commented 4 years ago

I have this issue as well.

JeremyBradshaw7 commented 4 years ago

No movement on this? Makes the component unusable.

paulxuca commented 4 years ago

Solution is to add removeClippedSubviews={false} to the ListView/> component rendered.

https://stackoverflow.com/questions/44022857/listview-not-displayed-unless-i-scroll-on-it