mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-12 22:30:36 +08:00
I noticed this issue only on android devices. After many rewrites of this component I ended up with this simple change and now drawer is closing properly every time. Most important part is to set new state inside function with state: (s: Animated.Value<number>) => set(this.gestureState, s) because I was also experiencing some issues when setting it like this state: this.gestureState