Commit 9ff0f23d authored by Jesse Harlin's avatar Jesse Harlin Committed by GitHub

Additional steps to edit MainApplicaiton .java

I was having build problems and was not able to use the underlying `FIRMessaging` object until I made this change.
parent bf4e4a06
......@@ -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:
```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