-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fix accessing UIViewManager configs #494
Conversation
src/js/LottieView.js
Outdated
@@ -120,7 +120,7 @@ class LottieView extends React.Component { | |||
android: () => | |||
UIManager.dispatchViewManagerCommand( | |||
handle, | |||
UIManager.LottieAnimationView.Commands[name], | |||
UIManager.getViewManagerConfig('LottieAnimationView').Commands[name], |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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!
Thank you for your hard work addressing these config fixes. How soon can we expect a merge? |
thanks @andrewtremblay ! |
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
Checklist
CHANGELOG.md