cesardeazevedo / react-native-bottom-sheet-behavior

react-native wrapper for android BottomSheetBehavior
MIT License
1.16k stars 114 forks source link

Fix NullPointerExeption when compiling for SDK 27 #41

Closed FlorianBergmann closed 6 years ago

FlorianBergmann commented 6 years ago

This should fix issue #40 Due to a change that results in onLayoutChild being called before onTouchEvent there will be a NullPointerException when compiling for SDK 27. In this case the mViewDragHelper needs to be created before calling processTouchEvent

cesardeazevedo commented 6 years ago

Thank you so much