Page MenuHomePhabricator

[native] Add a custom TabNavigator
ClosedPublic

Authored by kuba on Jun 23 2023, 2:29 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jun 11, 5:56 AM
Unknown Object (File)
Sun, Jun 9, 1:24 AM
Unknown Object (File)
Sun, Jun 9, 1:24 AM
Unknown Object (File)
Sun, Jun 9, 1:24 AM
Unknown Object (File)
Sat, Jun 8, 11:22 AM
Unknown Object (File)
Wed, Jun 5, 10:58 PM
Unknown Object (File)
Wed, Jun 5, 10:58 PM
Unknown Object (File)
Wed, Jun 5, 10:58 PM
Subscribers
None

Details

Summary

I add a custom router and navigator for TabNavigator. In later diffs, the new router will be used to prevent the user from tab navigating in edit mode.

Test Plan

On iOS:

  • Open the app.
  • Navigate between tabs.

Diff Detail

Repository
rCOMM Comm
Branch
kuba/blocking-navigation
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kuba retitled this revision from [native] Add custom TabNavigator to [native] Add a custom TabNavigator.
kuba edited the summary of this revision. (Show Details)
native/navigation/tab-router.js
22–27

Here is a draft of a custom getStateForAction. Going to be used in the next diff.

Harbormaster returned this revision to the author for changes because remote builds failed.Jun 23 2023, 2:52 AM
Harbormaster failed remote builds in B20451: Diff 28033!
This revision is now accepted and ready to land.Jun 27 2023, 8:24 PM