Skip to content

TabController - remove from incubator and remove support for children in TabBar #1182

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 10, 2021

Conversation

M-i-k-e-l
Copy link
Collaborator

Description

TabController - remove from incubator and remove support for children in TabBar

  • some minor fixes.

Changelog

TabController - remove from incubator and remove support for children in TabBar

@@ -344,7 +344,7 @@ declare const _default: React.ComponentClass<ViewProps & TouchableOpacityProps &
/**
* the badge size (default, small)
*/
size: number;
size?: number | undefined;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need to specify undefined type for an optional prop?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't, this is the automatically generated .d.ts file (when running npm run build:dev).

}

if ((propsItems || children.current) && !contextItems) {
if (propsItems && !contextItems) {
_registerTabItems();
}
}, []);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why no dependencies here, like 'items'? Won't it cause unnecessary updates?

Copy link
Collaborator Author

@M-i-k-e-l M-i-k-e-l Feb 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the contrary, no dependencies means no re-renders (this is similar to componentDidMount).

@Inbal-Tish Inbal-Tish merged commit ae188e0 into V6 Feb 10, 2021
@M-i-k-e-l M-i-k-e-l deleted the v6-tab-controller-remove-from-incubator-and-children branch October 4, 2021 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants