root-two / react-native-drawer

React Native Drawer
MIT License
2.54k stars 391 forks source link

set a negative margin to the drawer #321

Open gregoireLem opened 7 years ago

gregoireLem commented 7 years ago

Hi, I am using an easing function 'easeOutElastic' to open the drawer. The problem is that during the transition, there is an instant where the openDrawerOffset is bigger than the openDrawerOffset I specified in the props (due to the elastic function). So I need my drawer to have negative margin in order to avoid the gap during the transition. But this solution only works in IOS. Do you have a clue to make it on android ?

thanks