Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[react-native-screens] No member named 'parentShadowView' in 'facebook::react::ShadowViewMutation' (Build Failure) #2726

Closed
shubhanshubb opened this issue Feb 21, 2025 · 15 comments
Labels
Missing repro This issue need minimum repro scenario Platform: iOS This issue is specific to iOS

Comments

@shubhanshubb
Copy link

shubhanshubb commented Feb 21, 2025

Description

I am encountering a build error when trying to compile my React Native project with react-native-screens. The error occurs in the RNSScreenRemovalListener.cpp file inside the react-native-screens module.

Steps to reproduce

Steps to Reproduce:
Create a new React Native project or use an existing one.

npx @react-native-community/cli init MovieApp
cd MovieApp
Install react-native-screens.

yarn add @react-navigation/native @react-navigation/bottom-tabs
yarn add react-native-screens react-native-safe-area-context react-native-vector-icons react-native-gesture-handler react-native-reanimated

cd ios
pod-install

yarn start
The build fails with the above error.

Open Xcode tried to build the project

Snack or a link to a repository

shubhanshubb/MovieApp

Screens version

4.8.0

React Native version

0.78.0

Platforms

iOS

JavaScript runtime

Hermes

Workflow

React Native (without Expo)

Architecture

Fabric (New Architecture)

Build type

Debug mode

Device

iOS simulator

Device model

Iphone 16

Acknowledgements

Yes

@github-actions github-actions bot added the Missing repro This issue need minimum repro scenario label Feb 21, 2025
Copy link

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?

@github-actions github-actions bot added the Platform: iOS This issue is specific to iOS label Feb 21, 2025
@kkafar
Copy link
Member

kkafar commented Feb 21, 2025

4.8.0 does not support RN 0.78. Only version that supports it right now is 4.9.0-beta.0.

@kkafar kkafar closed this as completed Feb 21, 2025
@kkafar kkafar pinned this issue Feb 21, 2025
@shubhanshubb
Copy link
Author

shubhanshubb commented Feb 21, 2025

@kkafar so which version react native stable now so I don't get any error as in RN 0.77 also same issue is there

@kkafar
Copy link
Member

kkafar commented Feb 21, 2025

when running on RN 0.77 you can't get this error, because parentShadowView member was removed from mutation types in RN 0.78

@shubhanshubb
Copy link
Author

Yes, you are correct with RN 0.77 , It's working fine

@erie-e9
Copy link

erie-e9 commented Feb 22, 2025

Hey guys I'm sure this error is fixed in 4.9.0-beta.0, and yes all is working fine with 4.9.0-beta.0, but getting next error with 4.9.0:

Error message
Image


As you can see I updated it to 4.9.0
Image

@kkafar
Copy link
Member

kkafar commented Feb 22, 2025

@erie-e9 what version of RN are you using?

@erie-e9
Copy link

erie-e9 commented Feb 22, 2025

@kkafar I'm using RN v0.78

@kkafar
Copy link
Member

kkafar commented Feb 22, 2025

Would you ming opening RNSDefines.h and taking a look at what definition of MUTATION_PARENT_TAG macro is chosen?

@irmakcosarsahna
Copy link

same problem rn v0.78

@kkafar
Copy link
Member

kkafar commented Feb 23, 2025

@irmakcosarsahna could you provide me with information I've asked for above?

@irmakcosarsahna
Copy link

@kkafar I solved the problem using 4.9.0-beta.0, but I downgraded react native version because many packages do not support version 78 :(

@kkafar
Copy link
Member

kkafar commented Feb 23, 2025

This is not really a solution.

In case anyone still encounters the problem please provide me with your dependency list (I'm interested in react-native-screens & react-native) + the information I ask for here.

Alternatively (that would be the best option) please provide a reproduction.

At the moment I consider the problem solved.

@trickyc0d3r
Copy link

NO, problem still persist

@joshwinter
Copy link

I can also confirm the issue still exists in 4.9.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing repro This issue need minimum repro scenario Platform: iOS This issue is specific to iOS
Projects
None yet
Development

No branches or pull requests

6 participants