-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[RNMobile] Update gesture handler and reanimated libraries #39098
[RNMobile] Update gesture handler and reanimated libraries #39098
Conversation
Hermes engine has to be manually set because the library is not able to detect it automatically.
…g the Gutenberg class from NSObject to UIResponder
The downgrade is necessary in order to prevent a known issue in Reanimated (software-mansion/react-native-reanimated#2719).
Using the absolute path is required for Reanimated plugin when generating the JS bundle outside Gutenberg, like we do in Gutenberg Mobile.
This is required to support the react-native-gesture-handler package.
Size Change: 0 B Total Size: 1.15 MB ℹ️ View Unchanged
|
The unit tests are failing because the new version of
This is produced by the React Navigation library, as it still uses the old APIs but since it's just a warning, we should proceed to ignore it. However, in the tests, we can't silence it by using |
path.resolve( | ||
__dirname, | ||
'../../node_modules/react-native-reanimated/plugin' | ||
), |
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.
The installation instructions from the Reanimated library (reference) specify to use include here:
'react-native-reanimated/plugin',
However, that approach doesn't work when this configuration is referenced from a different location, as we do in GB-mobile (reference). For this reason, I had to reference the plugin by resolving its path.
- react-native-video (5.0.2-wp-2): | ||
- react-native-video (5.2.0-wp-2): | ||
- React-Core | ||
- react-native-video/Video (= 5.0.2-wp-2) | ||
- react-native-video/Video (5.0.2-wp-2): | ||
- react-native-video/Video (= 5.2.0-wp-2) | ||
- react-native-video/Video (5.2.0-wp-2): |
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.
Looks like react-native-video
was recently updated (reference) but this file wasn't updated to reflect the change.
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.
LGTM! I tested this on both iOS and Android using the demo app. 🚀
…nimation-deps # Conflicts: # packages/react-native-editor/ios/Podfile.lock
Heads up that I've bumped |
Gutenberg Mobile PR: wordpress-mobile/gutenberg-mobile#4615
Description
This PR updates the following libraries:
react-native-gesture-handler
to version2.2.0
(forked repository PR)react-native-reanimated
to version2.2.4
(forked repository PR)Additionally, due to API changes in the newer versions of both libraries, a set of modifications have been applied.
Testing Instructions
Test example
Click here to display the patch diff
Unit tests pass
npm run native test
and observe that all tests pass.Unit Tests / Mobile
pass.Screenshots
N/A
Types of changes
Dependencies update
Checklist:
*.native.js
files for terms that need renaming or removal).