Skip to content

Instantly share code, notes, and snippets.

@katharinepadilha
Created August 5, 2019 00:24
Show Gist options
  • Save katharinepadilha/a35b8eceab9379b43e9418b154a89f5c to your computer and use it in GitHub Desktop.
Save katharinepadilha/a35b8eceab9379b43e9418b154a89f5c to your computer and use it in GitHub Desktop.
MainApplication.java setup for firebase
//...
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