react-native-device-info
react-native-device-info copied to clipboard
fix(ios): isDisplayZoomed on iPhone 12/13 mini
Description
Fixes #1581.
On iPhone 12 mini and iPhone 13 mini, isDisplayZoomed() always returns true, independent of whether Display & Brightness -> Display Zoom is enabled.
We fix this issue by changing the comparison operator (see here).
Compatibility
| OS | Implemented |
|---|---|
| iOS | ✅ |
| Android | ❌ |
| Windows | ❌ |
Checklist
- [x] I have tested this on a device/simulator for each compatible OS
- [ ] I added the documentation in
README.md - [ ] I updated the typings files (
privateTypes.ts,types.ts) - [ ] I added a sample use of the API (
example/App.js)