Coder Social home page Coder Social logo

Comments (3)

rorkyendo avatar rorkyendo commented on June 25, 2024 1

i had the same issue here..
The second screen just in half screen

WhatsApp Image 2022-02-12 at 10 16 45

@jhen0409

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

WhatsApp Image 2022-02-12 at 10 31 30

from react-native-external-display.

jhen0409 avatar jhen0409 commented on June 25, 2024

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

Screen Shot 2021-05-14 at 3 52 22 PM

[Expected] Use real size / main display scale

Screen Shot 2021-05-14 at 3 52 08 PM

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.

jhen0409 avatar jhen0409 commented on June 25, 2024

It may be fixed by #413. Thanks @rorkyendo!

Released as v0.5.15.

from react-native-external-display.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.