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)
Wed, Apr 24, 7:01 AM
Unknown Object (File)
Wed, Apr 24, 7:01 AM
Unknown Object (File)
Wed, Apr 24, 7:01 AM
Unknown Object (File)
Wed, Apr 24, 6:59 AM
Unknown Object (File)
Mar 7 2024, 9:10 PM
Unknown Object (File)
Mar 7 2024, 9:10 PM
Unknown Object (File)
Mar 7 2024, 9:10 PM
Unknown Object (File)
Feb 11 2024, 7:17 AM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #28033)

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