ptelad / react-native-iphone-x-helper

A library to help you design your react-native app for notched iPhones
MIT License
942 stars 138 forks source link

iPad Support #20

Closed adkenyon closed 5 years ago

adkenyon commented 5 years ago

The following iPad models need support for getBottomSpace

Outside of using react-native-device-info I'm not sure how to infer these models from the standard react native library.

ptelad commented 5 years ago

Supporting this will introduce a native part for this lib (for reading the device model) which I'm not kin on doing at the moment, sorry.

AndyHubert commented 4 years ago

This looks like a solution: https://docs.expo.io/versions/latest/sdk/device/

adkenyon commented 4 years ago

Yeah, we're planning on using react-native-safe-area#getCurrentSafeAreaInsets

zabojad commented 4 years ago

The best to use right now would be react-native-safe-area-view and react-native-safe-area-context.