Commit 3f5d7459 authored by Libin Lu's avatar Libin Lu Committed by GitHub

Additional steps to edit MainApplicaiton .java (#171)

I was having build problems and was not able to use the underlying `FIRMessaging` object until I made this change.
parents 8df49060 9ff0f23d
...@@ -96,6 +96,30 @@ If you are using RN < 0.30.0 and react-native-fcm < 1.0.16, pass intent into pac ...@@ -96,6 +96,30 @@ If you are using RN < 0.30.0 and react-native-fcm < 1.0.16, pass intent into pac
+ } + }
``` ```
You will also need to add these to the list of packages in `MainApplication.java`
Edit `MainApplication.java`
```diff
import android.app.application
...
+import com.evollu.react.fcm.FIRMessagingPackage;
```
....
```diff
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new VectorIconsPackage(),
+ new FIRMessagingPackage(),
new RNDeviceInfo(),
);
}
```
- RN <= 0.27: - RN <= 0.27:
```diff ```diff
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment