enesozturk / rn-swipeable-panel

Zero dependency swipeable bottom panel for React Native 📱
MIT License
970 stars 143 forks source link

Adding top padding to prevent notch cut #64

Closed danieltrizzuto closed 3 years ago

danieltrizzuto commented 3 years ago

This PR prevents the panel from growing under iOS notch:

As it is:

Screen Shot 2020-10-15 at 19 03 26

With the prevention:

Screen Shot 2020-10-15 at 19 03 39
enesozturk commented 3 years ago

Hi! Thanks for contribution to rn-swipeable-panel. I will check the PR as soon as possible 👍🏽

enesozturk commented 3 years ago

I merged your pull request. But I did not understand very well what changed by adding 14 to 100 😄 It was using 100 pixel padding top before and now uses 14 px more. I merged anyway 😄

Thanks for contribution. Happy coding 🥳