Is it possible to target phones (iPhone 14 Pro and iPhone 14 Pro Max) with dynamic islands with React Native?
Question posted in React native
The official React Native documentation can be found here.
The official React Native documentation can be found here.
2
Answers
Just to complement the other answer it is also possible to use react-native-device-info
or even simpler:
You can simply detect an iPhone with a dynamic island by using
react-native-safe-area-context
by getting the height/top of it, if it was59
then this iPhone has a dynamic island