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

[RCTView setBackButtonInCustomView:]: unrecognized selector sent to instance #2728

Closed
money-development opened this issue Feb 21, 2025 · 6 comments
Labels
Missing repro This issue need minimum repro scenario Platform: iOS This issue is specific to iOS

Comments

@money-development
Copy link

Description

I get an error [RCTView setBackButtonInCustomView:]: unrecognized selector sent to instance when launching an iOS application, the build itself is successful.

It reproduces only with these versions:

"react-native": "0.77.1",
"react-native-screens": "4.5.0" +, (same with "4.6.0", "4.7.0", "4.8.0")

On previous versions everything is correct:

"react-native": "0.76.7",
"react-native-screens": "4.4.0"

Steps to reproduce

Run the developer build and run the application

Snack or a link to a repository

no snack

Screens version

4.8.0

React Native version

0.77.1

Platforms

iOS

JavaScript runtime

None

Workflow

None

Architecture

None

Build type

None

Device

None

Device model

No response

Acknowledgements

Yes

@github-actions github-actions bot added Platform: iOS This issue is specific to iOS Missing repro This issue need minimum repro scenario labels 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?

@kkafar
Copy link
Member

kkafar commented Feb 21, 2025

Please see: https://reactnative.dev/blog/2025/01/21/version-0.77#rctappdependencyprovider and upgrade your project accordingly.

@kkafar kkafar closed this as completed Feb 21, 2025
@money-development
Copy link
Author

maybe there is a solution if i use expo?

@kkafar
Copy link
Member

kkafar commented Feb 21, 2025

I believe you're still able to edit your AppDelegate even when using Expo. I do not know the commands by heart unfortunately.

@money-development
Copy link
Author

money-development commented Feb 21, 2025

Please see: https://reactnative.dev/blog/2025/01/21/version-0.77#rctappdependencyprovider and upgrade your project accordingly.

the problem still persists
p.s. but only in dev mode, production build - no problem

@kkafar
Copy link
Member

kkafar commented Feb 21, 2025

I would blame caches here. Make sure you nuke the caches and execute a clean build.

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

2 participants