mirror of
https://github.com/zhigang1992/react-native-notifications.git
synced 2026-06-12 09:08:11 +08:00
Issue #461 I got the following error message. package com.wix.reactnativenotifications does not exist I fixed it by making the following changes. 1. Added the following line to Project/app/build.gradle implementation project(':react-native-notifications') 2. Changed the following lines in MainApplication.java - protected List<ReactPackage> getPackages() { - return Arrays.<ReactPackage>asList( - new MainReactPackage(), - // ... - // Add this line: - new RNNotificationsPackage(MainApplication.this) + protected List<ReactPackage> getPackages() { + @SuppressWarnings("UnnecessaryLocalVariable") + List<ReactPackage> packages = new PackageList(this).getPackages(); + // ... + // Add this line: + packages.add(new RNNotificationsPackage(MainApplication.this)); + return packages; + }