Skip to content

Only import 'react-native-reanimated' library when requested #2184

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
Aug 17, 2022

Conversation

overengineered
Copy link
Contributor

require('react-native-reanimated') is not cheap, so it should be done only when necessary

Description

Improve performance by avoiding optional import

Changelog

Make View component slightly faster when not using reanimated prop

require('react-native-reanimated') is not cheap, so it should be done only when necessary
@ethanshar ethanshar merged commit f844846 into master Aug 17, 2022
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