From 9ff0f23df8403f27af7b5d0d7a629d1a71300864 Mon Sep 17 00:00:00 2001 From: Jesse Harlin Date: Thu, 20 Oct 2016 18:01:51 -0500 Subject: [PATCH] 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. --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index bab458b..8ed4ae7 100644 --- a/README.md +++ b/README.md @@ -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 getPackages() { + return Arrays.asList( + new MainReactPackage(), + new VectorIconsPackage(), ++ new FIRMessagingPackage(), + new RNDeviceInfo(), + ); + } + ``` + + + - RN <= 0.27: ```diff -- 2.26.2