Created
August 5, 2019 00:24
-
-
Save katharinepadilha/a35b8eceab9379b43e9418b154a89f5c to your computer and use it in GitHub Desktop.
MainApplication.java setup for firebase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//... | |
import io.invertase.firebase.messaging.RNFirebaseMessagingPackage; | |
import io.invertase.firebase.notifications.RNFirebaseNotificationsPackage; | |
//... | |
protected List<ReactPackage> getPackages() { | |
@SuppressWarnings("UnnecessaryLocalVariable") | |
List<ReactPackage> packages = new PackageList(this).getPackages(); | |
//... | |
packages.add(new RNFirebaseMessagingPackage()); | |
packages.add(new RNFirebaseNotificationsPackage()); | |
return packages; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment