Page MenuHomePhabricator

[native] Refactor app-navigator.js
ClosedPublic

Authored by inka on Nov 4 2022, 7:01 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 11, 10:38 PM
Unknown Object (File)
Thu, Apr 11, 10:38 PM
Unknown Object (File)
Thu, Apr 11, 10:38 PM
Unknown Object (File)
Thu, Apr 11, 10:38 PM
Unknown Object (File)
Thu, Apr 11, 10:38 PM
Unknown Object (File)
Thu, Apr 11, 10:38 PM
Unknown Object (File)
Thu, Apr 11, 10:36 PM
Unknown Object (File)
Wed, Apr 3, 2:43 AM
Subscribers

Details

Summary

tab navigator and overlay navigator should be in separate files.
Linear issue: https://linear.app/comm/issue/ENG-1883/refactor-app-navigatorjs-so-each-navigator-has-its-own-file

Test Plan

run ios simulator

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

inka requested review of this revision.Nov 4 2022, 7:12 AM

tested locally, and everything works well!

This revision is now accepted and ready to land.Nov 4 2022, 8:22 AM
This revision now requires review to proceed.Nov 7 2022, 1:07 AM
tomek requested changes to this revision.Nov 7 2022, 1:39 AM
tomek added inline comments.
native/navigation/tab-navigator.react.js
79 ↗(On Diff #18077)

Is it a correct route name?

This revision now requires changes to proceed.Nov 7 2022, 1:39 AM
native/navigation/tab-navigator.react.js
79 ↗(On Diff #18077)

No, sorry

This revision is now accepted and ready to land.Nov 7 2022, 6:38 AM
native/navigation/tab-navigator.react.js
78–83 ↗(On Diff #18106)

Does this allow us to remove the eslint-disable?

native/navigation/tab-navigator.react.js
78–83 ↗(On Diff #18106)

No, because then Flow doesn't allow us to use this as a Screen in AppNavigator, because "(...) property navigation is missing (...)" / "(...) property route is missing (...)"

native/navigation/tab-navigator.react.js
78–83 ↗(On Diff #18106)

Got it, thanks @inka!