zo0r / react-native-push-notification

React Native Local and Remote Notifications
MIT License
6.77k stars 2.05k forks source link

React native 0.75 support #2427

Open Davidemc7 opened 1 month ago

Davidemc7 commented 1 month ago

Hi!

I had trouble compiling my project on React Native 0.75.

I had to make changes to the following file and this solved my problem:

_nodemodules\react-native-push-notification\android\build.gradle

image

I removed the following line and it worked: implementation "$appCompatLibName:$supportLibVersion"

I based myself on the following solution with the react-native-splash-screen library. https://github.com/crazycodeboy/react-native-splash-screen/issues/652.

I'm not sure if this is the right way but it works.

tohel17 commented 1 month ago

@Davidemc7 Instead of removing the line I would recommend,
implementation "$appCompatLibName:27.1.1" doing this.

HarryTheMartec commented 1 month ago

special thank @Davidemc7 it's work for me

hidaeraldo commented 1 month ago

@Davidemc7 Is "onRegister" function getting triggered after you did this patch?