Eugnis / react-native-timeline-flatlist

FlatList based timeline component for React Native for iOS and Android
https://www.npmjs.com/package/react-native-timeline-flatlist
MIT License
478 stars 69 forks source link

Shifted innerCircle when changing device orientation #87

Open JB712 opened 9 months ago

JB712 commented 9 months ago

It seems like when I change my emulator orientation (portrait/landscape), everything rerender ok but not the icons from the central line. They are shifted (side depends on the starting orientation). Even when I use dots or default circle element. I use RN 0.72.9 and react-native-timeline-flatlist 0.8.0, on an android emulator.

JB712 commented 9 months ago

Ok this is a simple test to adapt display to screen size that is not exhaustive (at least in my case). I am using a custom renderTime, renderDetails, and i build a different React component Icon (from recta-native-element) for each data to be displayed as innerCircle.

Here is my correction : react-native-timeline-flatlist+0.8.0.patch