software-mansion / react-native-screens

Native navigation primitives for your React Native app.
MIT License
3.01k stars 510 forks source link

[RNScreens] Failed to initialise dummy layout in onHostResume. This is not expected. Android #2324

Open Kabeer-Haseja opened 2 weeks ago

Kabeer-Haseja commented 2 weeks ago

Description

when we run app we are getting this versions that i am using "react-native": "0.75.2", "react-native-safe-area-context": "^4.10.9", "react-native-screens": "^3.34.0",

and kotlin version kotlinVersion = "1.9.24" Screenshot_20240829_115709

Steps to reproduce

just update the react native screen

Snack or a link to a repository

..

Screens version

3.34.0

React Native version

0.75.2

Platforms

Android

JavaScript runtime

None

Workflow

None

Architecture

Fabric (New Architecture)

Build type

Release mode

Device

Android emulator

Device model

No response

Acknowledgements

Yes

github-actions[bot] commented 2 weeks ago

Hey! 👋

It looks like you've omitted a few important sections from the issue template.

Please complete Snack or a link to a repository section.

github-actions[bot] commented 2 weeks ago

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?

kkafar commented 2 weeks ago

@Kabeer-Haseja can you provide us with reproduction / stack trace at least? You might also want to try out 3.35.0-rc.1 version of the library

Kabeer-Haseja commented 2 weeks ago

@kkafar when i enable new architecture newArchEnabled=true and run the app it come up with the that screen that i already showed to you

kkafar commented 2 weeks ago

@Kabeer-Haseja Thats understandable, but it does not happen for me. Have you tried out 3.35.0-rc.1? It might be already patched.

Kabeer-Haseja commented 2 weeks ago

Hi @kkafar,

I encountered an issue while trying to install react-native-screens@3.35.0-rc.1. The other packages, such as:

•   @react-navigation/bottom-tabs: ^6.6.1
•   @react-navigation/native: ^6.1.18
•   @react-navigation/native-stack: ^6.11.0
•   @react-navigation/stack: ^6.4.1

are not supported after the installation.

Here’s what I did to install react-native-screens@3.35.0-rc.1 (though it’s not an ideal approach):

1.  Removed react-native-screens package: I started by removing the existing react-native-screens package.
2.  Ran npm install: After removing the package, I ran npm install to install all the remaining dependencies.
3.  Reinstalled react-native-screens: Finally, I installed react-native-screens@3.35.0-rc.1.

However, when I tried to add all the packages back together and ran npm install, I encountered errors with the packages mentioned above.

LinhLM23496 commented 1 week ago

+1

sanchezzzs commented 1 week ago

same problem on armv8 with newArchEnabled=true, armv7 works fine. "react-native-screens": "^3.34.0"

UPD:

changing MainApplication

if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
            load()
}

to

if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
            load(bridgelessEnabled=false)
}

solved the problem