Skip to content

Infra/refactor view - convert to function component and use modifiers and themeProps hooks #2146

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 8 commits into from
Jul 27, 2022

Conversation

ethanshar
Copy link
Collaborator

@ethanshar ethanshar commented Jul 26, 2022

Description

Convert View to a function component to reduce render hierarchy

depends on #2145

Changelog

Convert View to a function component to reduce render hierarchy

@ethanshar ethanshar changed the title Infra/refactor view Infra/refactor view - convert to function component and use modifiers and themeProps hooks Jul 26, 2022
@ethanshar ethanshar marked this pull request as ready for review July 27, 2022 09:17
@ethanshar ethanshar requested a review from M-i-k-e-l July 27, 2022 09:17
</Element>
);
return container;
}, [useSafeArea, animated, reanimated]);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I can see useSafeArea changing, but probably not the other two

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 agree, And if they won't change there's no harm having them here (:

Copy link
Collaborator

Choose a reason for hiding this comment

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

It might have some performance implications, but they are probably minor

@ethanshar ethanshar requested a review from M-i-k-e-l July 27, 2022 13:32
@M-i-k-e-l M-i-k-e-l merged commit faead14 into master Jul 27, 2022
@ethanshar ethanshar deleted the infra/refactorView branch April 2, 2024 06:39
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