Open scottmas opened 2 years ago
For reference, these are the emulator specs which I know will trigger the crash:
@scottmas, thanks for reporting this, your post lead me to checking out the display settings.
I'm having the same issue on my Motorola Edge 30, when setting the display to "small".
But if I'm using "default" everything works fine:
Small has this screen config:
Screen width: 1080 pixels
Screen height: 2244 pixels
Display orientation: Portrait
Device screen
Screen width: 508 dp
Screen height: 1056 dp
Screen smallest width: 508 dp
Screen density value: 340 dp
Screen density value: 2.125
Screen scaled density: 2.125
Display font scale: 0.85
Screen size: Large
Default has this screen config:
Screen width: 1080 pixels
Screen height: 2235 pixels
Display orientation: Portrait
Device screen
Screen width: 432 dp
Screen height: 894 dp
Screen smallest width: 432 dp
Screen density value: 400 dp
Screen density value: 2.5
Screen scaled density: 2.5
Display font scale: 0.85
Screen size: Normal
Used https://play.google.com/store/apps/details?id=com.harrikirik.rescheck to get the resolution with the different display settings.
Unfortunately I have not found a solution to the problem.
I'm having the same issue, any news about this issue?
Specially on Samsung tablets the default display set as either Full Screen or Aspect Ratio and this preference causing the app crash. If we override with App Default then it's working fine. But it difficult to intimate users to override this setting. Any update to fix this issue ?
Hi Team, our production apps heavily impacted because of this issue. This issue is reported long ago, any latest update on this issue fix?
Hi @satyapakanati, @fabinzne,
I've tried to reproduce this issue on specs provided here & I didn't succeed, everything works fine for me. Would you mind providing me with package versions you re using? (react-native
, react-native-screens
& @react-navigation
packages if they're in use)
As of now, stack trace indicates omitted installation steps. It's worth checking out if you have this code in your app.
@kkafar please find the version info as mentioned.
"react-native": "0.67.4", "react": "17.0.2", "react-native-screens": "3.15.0", "@react-navigation/bottom-tabs": "^6.0.9", "@react-navigation/compat": "^5.3.15", "@react-navigation/drawer": "^6.1.8", "@react-navigation/native": "^6.0.6", "@react-navigation/stack": "^6.0.11",
in my case, my entire app restricted to portrait mode except player screen. When user attempts playback we lock the orientation to landscape. At this step app is restarting.
@kkafar any update on this issue ?
I am facing the same issue on devices with around 6.6inch display.
Hi @satyapakanati, @fabinzne, I've tried to reproduce this issue on specs provided here & I didn't succeed, everything works fine for me. Would you mind providing me with package versions you re using? (
react-native
,react-native-screens
&@react-navigation
packages if they're in use)As of now, stack trace indicates omitted installation steps. It's worth checking out if you have this code in your app.
@kkafar can you please share your package.json for the same?
@satyapakanati, I was not able to reproduce the issue.
@Saalim95 The ones I tested can be found in this PR discussion and additionaly you can check TestExample.
Edit: To work on this I need working reproduction: if anyone of you can reproduce it reliably, please create git repo with reproduction and hand me the link.
i have fixed this issue by adding screenLayout|smallestScreenSize in the configChanges of manifest file. @Saalim95 , @fabinzne , @yberstad , @scottmas
@satyapakanati thank you very much! You saved my life!!
@satyapakanati I using "react-native-screens": "^3.28.0"
and i already setting configChanges.
It is my setting
But i get error this
cc. @kkafar
Description
Switching from portrait to landscape orientation on an Android device with size equal to or greater than 6.7 inches causes a crash
Screenshots
It causes a crash. Stack trace below....
Steps To Reproduce
On a new, bare RN Diff App, click on the button in the following app to trigger the crash:
Expected behavior
It works.
Actual behavior
It crashes with an
adb logcat
output like so:Reproduction
Steps to reproduce described above. No snack link since it's raw react-native-screens.
Platform
Workflow
Package versions