react-native-responsive-screen icon indicating copy to clipboard operation
react-native-responsive-screen copied to clipboard

Orientation Listener don't work

Open BruceHammerTech opened this issue 6 years ago • 5 comments

OrientationListener didn't do the job I believe

BruceHammerTech avatar Feb 17 '20 06:02 BruceHammerTech

What do you mean by didn't do the job?

dimps23 avatar Feb 19 '20 01:02 dimps23

@BruceHammerTech , if you want someone to help you then you have to provide at least some info about your case. Opening an issue just to open an issue is... at least depressing :)

antonogarkov avatar Mar 03 '20 07:03 antonogarkov

BruceHammerTech is one of my accounts. I opened this issue. The problem I found out is that even I have OrientationListener attach to the screen. The screen will not be responsive when I rotate the screen. For example, if <Box style={{width: wp('80%')}} /> . If I rotate it from landscape to portrait. The box component will exceed the screen.

BruceSuperProgramer avatar Mar 10 '20 02:03 BruceSuperProgramer

@BruceSuperProgramer do you have sample project to reproduce your issue?

logicallydimp23 avatar Mar 10 '20 02:03 logicallydimp23

Hi guys, I just tested the orientation feature from the example project listed in this git repository. I found that it looks like not working properly in the simulator because when we click rotate button on the simulator found the simulator rotated but the screen seems didn't responsive change to fit the orientation direction. Screen Shot 2021-06-07 at 11 51 24 am

But if you test it again on an iPad real device, you will find it working perfectly. As this working on a real iPad, so I think it is not a bug. Please close this issue, thanks.

BruceSuperProgramer avatar Jun 07 '21 01:06 BruceSuperProgramer