Open mkashlev opened 5 years ago
@mkashlev You may want to check out react-native-firebase. I am currently migrating to that. There is an example in this repo showing the migration path.
any update on this issue ? I've been running into the same for a few days and didn't find any solution yet.
I've finally managed to build successfully by manually replacing all mentioned imports with their respective androidx imports .. Here is the migration guide to androidx https://developer.android.com/jetpack/androidx/migrate
one can use 'npx jetify' to migrate to androidX. It has rather good manual
Is there a solution for this without manually editing stuff in npm_modules?
I don't think this library is supported anymore. You can do all of the same things with react-native-firebase
I have upgraded react native, react and all libraries to latest versions. All of them support androidx. However, your library is lagging behind. Migrating to androidx removes the android.support dependency. This dependency and androidx conflict with each other and, frankly, share the same functionality. However, react-native-fcm depends on android.support.* dependencies.
When I try to compile code for android by running react-native run-android, which, in turn, runs gradle assemble, I get the following errors:
I had to manually fix by subbing the following with the following: android.support.v4.content.LocalBroadcastManager -> androidx.localbroadcastmanager.content.LocalBroadcastManager android.support.v4.app.NotificationManagerCompat -> androidx.core.app.NotificationManagerCompat android.support.v4.app.NotificationCompat -> androidx.core.app.NotificationCompat
Environment info: