Skip to content

feat(iOS, SplitView): SplitView synchronous updates#3274

Merged
t0maboro merged 9 commits into
mainfrom
t0maboro/split-view-synchronous-updates
Oct 6, 2025
Merged

feat(iOS, SplitView): SplitView synchronous updates#3274
t0maboro merged 9 commits into
mainfrom
t0maboro/split-view-synchronous-updates

Conversation

@t0maboro

@t0maboro t0maboro commented Oct 3, 2025

Copy link
Copy Markdown
Contributor

Description

We have an access to API for sending synchronous state updates, which makes it possible to resolve the issue of jumping content when resizing columns in SplitView.

Caution

Our assumption is that SplitView will be supported since RN minor version 0.82, compiling it with older version may fail!

Fixes https://github.com/software-mansion/react-native-screens-labs/issues/493

Changes

  • Added UpdateMode::unstable_Immediate to SplitView shadow node state updates

Screenshots / GIFs

Before

before.mov

After

after.mov

Test code and steps to reproduce

Went through SplitView examples. Checked that it still compiles successfully with RN 0.81.

Some follow-up actions are needed to be taken:

Checklist

  • Included code example that can be used to test this change
  • Ensured that CI passes

@t0maboro t0maboro marked this pull request as ready for review October 4, 2025 11:24
@t0maboro t0maboro changed the title WIP - SplitView synchronous updates feat(iOS, SplitView): SplitView synchronous updates Oct 4, 2025

@kkafar kkafar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One important remark here.

Comment thread RNScreens.podspec Outdated
Comment thread ios/gamma/split-view/RNSSplitViewScreenShadowStateProxy.mm Outdated
@t0maboro t0maboro requested a review from kkafar October 6, 2025 10:13

@kkafar kkafar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's update PR description before we land this. Beside cleanup put there a note that we require 0.82 now with this commit.

@t0maboro

t0maboro commented Oct 6, 2025

Copy link
Copy Markdown
Contributor Author

Let's update PR description before we land this. Beside cleanup put there a note that we require 0.82 now with this commit.

@kkafar I updated the description

@t0maboro t0maboro merged commit 3de8e69 into main Oct 6, 2025
6 checks passed
@t0maboro t0maboro deleted the t0maboro/split-view-synchronous-updates branch October 6, 2025 13:23
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.

3 participants