Page MenuHomePhabricator

[native] Add a custom TabNavigator
ClosedPublic

Authored by kuba on Jun 23 2023, 2:29 AM.
Tags
None
Referenced Files
F6238643: D8303.diff
Thu, Apr 24, 6:35 PM
Unknown Object (File)
Wed, Apr 23, 5:29 PM
Unknown Object (File)
Wed, Apr 23, 12:39 PM
Unknown Object (File)
Sun, Apr 20, 12:46 PM
Unknown Object (File)
Sun, Apr 20, 6:08 AM
Unknown Object (File)
Sat, Apr 19, 9:33 PM
Unknown Object (File)
Sat, Apr 19, 8:49 PM
Unknown Object (File)
Sat, Apr 19, 3:43 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