Skip to content

refactor(iOS): cleanup no. 1 in RNSScreenStackHeaderConfig.updateViewController:withConfig:animated: #2798

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

Merged
merged 5 commits into from
Mar 24, 2025

Conversation

kkafar
Copy link
Member

@kkafar kkafar commented Mar 24, 2025

Description

This method is very hard to read & it is very scary to refactor
since as far as I remember, sometimes even call order matters here.

Therefore, I've decided to split the refactoring process into many small PRs.
This PR improves local variable naming & extracts LTR handling to separate method.

Test code and steps to reproduce

Nothing should change. LTR works as earlier. Can be tested in Example by toggling RTL mode (there is a button for it).

Checklist

  • Ensured that CI passes

@kkafar kkafar changed the title refactor(iOS): little cleanup in RNSScreenStackHeaderConfig.updateViewController:withConfig:animated: refactor(iOS): cleanup no. 1 in RNSScreenStackHeaderConfig.updateViewController:withConfig:animated: Mar 24, 2025
@kkafar kkafar merged commit 82f1124 into main Mar 24, 2025
6 checks passed
@kkafar kkafar deleted the @kkafar/playaround-with-headerconfig branch March 24, 2025 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant