**NOTE:** The resource `@mipmap/ic_notif` is referring to `android/app/src/res/mipmap-<resolution>/` folder. Feel free to change the filename if you have a customised icon for notification.
If you are using other firebase libraries, check this for solving dependency conflicts https://github.com/evollu/react-native-fcm/blob/master/Examples/simple-fcm-client/android/app/build.gradle#L133
If you are using other firebase libraries, check this for solving dependency conflicts https://github.com/evollu/react-native-fcm/blob/master/Examples/simple-fcm-client/android/app/build.gradle#L133
- Edit `android/settings.gradle`
### Edit `android/settings.gradle`
```diff
```diff
...
...
+ include ':react-native-fcm'
+ include ':react-native-fcm'
...
@@ -173,7 +177,10 @@ public class MainActivity extends ReactActivity {
...
@@ -173,7 +177,10 @@ public class MainActivity extends ReactActivity {
}
}
```
```
- Make sure in `MainApplication.java` you have
### Make sure in `MainApplication.java` you have the code below:
**NOTE:** The packages listed inside should appear once only. `react-native link` sometimes can mess up this part, please remove duplicated packeges.