Saúl Ibarra Corretgé c700261852 [RN] Refactor SideBar layout and animation
Layout:

Use an absolute-fill view as the background with the sidebar on top of. This
greatly simplifies styling, as there is no need to calculate how large the
backdrop needs to be.

Animation:

Switch to a translateX transform animation. This serves 2 purposes: first,
there seems to be a bug somewhere in React Native 0.51-0.55 where the content
that is being animated starts to be clipped. Very weird! But more importantly,
translateX transmorm animations are supported by the native animation driver!

https://facebook.github.io/react-native/blog/2017/02/14/using-native-driver-for-animated.html
8f5ebe5952/Libraries/Animated/src/NativeAnimatedHelper.js (L138-L176)

This makes the animation more performant and buttery smooth.

Some small cleanups are also included here.
2018-06-04 16:05:48 -05:00
..
2018-05-15 14:12:39 -05:00
2018-06-04 16:05:48 -05:00
2017-10-02 18:12:38 -05:00
2018-06-04 16:05:48 -05:00
2018-06-04 16:05:48 -05:00
2018-06-04 16:05:48 -05:00
2018-06-04 16:05:48 -05:00
2018-06-04 16:05:48 -05:00
2018-04-13 17:00:40 -07:00