Comments (3)
i had the same issue here..
The second screen just in half screen
edited i fixed this issue by changing
Dimensions.get('screen') to Dimensions.get('window')
in EventEmitter.js now it's full screen on my second screen
from react-native-external-display.
The Android display.getRealScreensize() returns the correct resolution, but the scale part in the JS code seems to mess it up. Can anyone explain why iOS gets scale=1 and Android gets whatever the main screen has?
This is because the View layout calculation is followed main display, so if we use the real size, you can see our test results in simulate display of Android Emulator:
[Unexpected] Use real size
[Expected] Use real size / main display scale
I don't know what the main cause of this issue is. I don't have a real Android tablet at the moment. So if there is any solution, PR is always welcome.
from react-native-external-display.
It may be fixed by #413. Thanks @rorkyendo!
Released as v0.5.15.
from react-native-external-display.
Related Issues (20)
- [AirPlay] Starting application with AirPlay enabled causes error on import.
- Background image not displayed when running on iPhone, but works on iPad (multiple real devices)
- ScrollView is not working on external display HOT 2
- [Support] Is there a min/max iOS version that this module supports? HOT 1
- Secondary display touch support HOT 3
- Artifact when changing content on second screen HOT 1
- Problem display external HOT 6
- ExternalDisplay component disappears when I exit from the app
- Background Transparency for smartglasses
- TypeError: null is not an object (evaluating 'RNExternalDisplayEvent.SCREEN_INFO') HOT 1
- Second screen keep return main app screen and re-render HOT 1
- Missing type definitions for TypeScript HOT 1
- detected two or more react native external displays to render the same screen id 1 HOT 1
- Android 11 - Cannot touch main screen when second display is rendered HOT 2
- Unable to add window android.view.ViewRootImpl -- specified display can not be found HOT 2
- Only works in a function component
- Scene Support for iOS 13.0 or above
- [Maintenance / New Architecture] - Support questions HOT 1
- Multi-window support for Android
- Support on Expo? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-external-display.