Skip to content

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

Merged
kkafar merged 5 commits intomainfrom
@kkafar/playaround-with-headerconfig
Mar 24, 2025
Merged

refactor(iOS): cleanup no. 1 in RNSScreenStackHeaderConfig.updateViewController:withConfig:animated:#2798
kkafar merged 5 commits intomainfrom
@kkafar/playaround-with-headerconfig

Conversation

@kkafar
Copy link
Copy Markdown
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