gorhom / react-native-sticky-item

An interactive sticky item inspired by Facebook Stories.
MIT License
891 stars 48 forks source link

Remove separator size from sticky item width calculation #12

Closed gorhom closed 4 years ago

gorhom commented 4 years ago

Bug

Current implementation includes separator size in sticky item width calculation, which cause an issue when setting a large number.

Environment info

Library Version
@gorhom/sticky-item 1.2.x
react-native 0.62.x
react-native-reanimated 1.8.x
react-native-gesture-handler 1.6.x
react-native-svg 12.x.x

Steps To Reproduce

  1. Set separatorSize to 40 or more.

Describe what you expected to happen:

  1. not include separatorSize in stickyItemWidth calculation
gorhom commented 4 years ago

released with v1.3.0