-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Description
📚 Documentation
Currently, we can set component options by multiple ways:
Navigation.setDefaultOptionsNavigation.mergeOptions- Layout definition (via
Navigation.push,Navigation.setRoot...) - Static options on component
My questions are:
- When options are set to the component for the first time?
- It is in time of component registering (Navigation.setDefaultOptions),
- or before mounting when no animation happened yet (Navigation.setRoot...),
- or at any time (Navigation.mergeOptions)? - How does the merging process works? What takes the precedence? What is the order?
- Does merging algorithm handles every property anywhere deep in the layout, or does it only replaces whole sections (like
BottomTabsOptions,TopBarOptionsetc.)? - Can
Navigation.setDefaultOptionsbe called multiple times? - Does calling
Navigation.setDefaultOptionsupdate already mounted and appeared component? And does it trigger the whole merging process as defined in question no. 2? - Does calling
Navigation.mergeOptionstrigger the whole merging process as defined in question no. 2? That means that it for examples merges with default options - if defined.
It would be great to have some diagram demonstrating the whole flow.
Thanks for reply.
Have you read the Contributing Guidelines on issues?
Partially