-
-
Notifications
You must be signed in to change notification settings - Fork 955
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
Migrate Android Support Libraries To AndroidX #589
Conversation
Supercool. Is there anything we should be afraid of merging it? Are we going drop support for some versions with it? |
As far as I understand AndroidX libraries are not compatible with non AndroidX projects, so all projects that consume this library must also be migrated to AndroidX. I wanted to leave it to the maintainers to decide if this is something they would want to do. Unfortunately, the reverse is also true, any Android projects that have migrated to AndroidX, cannot use this library without these changes. Do we have any idea how other RN libraries are handling this situation? |
It looks like Flutter has depreciated support library support in favor of AndroidX and has included instructions on how to upgrade your project, along with a list of the last plugin versions to support the legacy support libraries: https://flutter.dev/docs/development/packages-and-plugins/androidx-compatibility This might be a good approach? |
There is also a React Native AndroidX migration plan here: |
@aarongrider Please apply changes in your PR to Slider |
Should we just wait for RN 60? |
Co-Authored-By: Leon Omelan <rozpierog@gmail.com>
Hey, I'd love to finally get that androidX migration in, however this PR has too many conflicts I am not sure how to resolve. Do you mind updating it? |
Of all the AndroidX PRs this seems to be the most complete one. It updates the example app and all dependencies and keeps the CI intact. Instead of using forked versions of the viewpager and slider for the example app I would suggest using https://github.com/mikehardy/jetifier instead though and update the react-native version to 0.60+. It would probably also be good to make it possible for users of the package to provide a version of the AndroidX packages instead of hardcoding the version like was done in react-native-device-info. (ignore the backwards compatibility part though, you don't want that here) |
we already merged another PR switching to AndroidX |
This is a new PR following: #579
Currently I am using 2 forked dependencies to get the Android tests to pass. We will probably want to wait till our dependencies take the AndroidX upgrade and install directly from npm before merging this branch.
callstack/react-native-slider#56
callstack/react-native-pager-view#22