Skip to content
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

Fix accessing UIViewManager configs #494

Merged

Conversation

andrewtremblay
Copy link
Contributor

Summary

This PR should remove the warning regarding UIViewManager accessing LottieAnimationView directly.
See the source comments for more information:
https://github.com/facebook/react-native/blob/fc94ade11c09bc5ed027f7ebd58341d851d4c3fb/Libraries/ReactNative/UIManagerProperties.js#L15

Closes #437

Test Plan

Compatibility

OS Implemented
iOS
Android

Checklist

  • I have tested this on a device and a simulator
  • I mentioned this change in CHANGELOG.md

@@ -120,7 +120,7 @@ class LottieView extends React.Component {
android: () =>
UIManager.dispatchViewManagerCommand(
handle,
UIManager.LottieAnimationView.Commands[name],
UIManager.getViewManagerConfig('LottieAnimationView').Commands[name],
Copy link
Contributor

Choose a reason for hiding this comment

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

Would this break support of RN < 0.58 since getViewManagerConfig doesn't exist in older versions or am I missing something?

Choose a reason for hiding this comment

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

@XeroX Agree, something like this would be helpful

Copy link
Member

Choose a reason for hiding this comment

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

@andrewtremblay can you create a fix for this and ping me once it's ready?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@emilioicai: Just pushed a commit that should address the backwards compatibility issues.

Thanks everyone for your patience!

@cspicuzza
Copy link

Thank you for your hard work addressing these config fixes. How soon can we expect a merge?

@emilioicai emilioicai self-assigned this Jul 3, 2019
@emilioicai emilioicai merged commit 6279bed into lottie-react-native:master Jul 3, 2019
@emilioicai
Copy link
Member

thanks @andrewtremblay !

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.

new warning while upgrading to RN 0.58
6 participants