marudy / react-native-responsive-screen

Make React Native views responsive for all devices with the use of 2 simple methods
MIT License
1.55k stars 141 forks source link

Orientation Listener don't work #67

Open BruceHammerTech opened 4 years ago

BruceHammerTech commented 4 years ago

OrientationListener didn't do the job I believe

dimps23 commented 4 years ago

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

antonogarkov commented 4 years ago

@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 :)

BruceSuperProgramer commented 4 years ago

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.

logicallydimp23 commented 4 years ago

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

BruceSuperProgramer commented 3 years ago

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.