From b6992e0832f0a746eaf12bd3d3282ffb3d4a864a Mon Sep 17 00:00:00 2001 From: Marya Doery Date: Fri, 20 Mar 2020 08:56:30 -0400 Subject: [PATCH] See instructions at https://github.com/zmxv/react-native-sound/issues/567 com.zmxv.RNSound.RNSoundPackage needs to be manually added to package list. --- .../app/src/main/java/com/audioplayerdemo/MainApplication.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/app/src/main/java/com/audioplayerdemo/MainApplication.java b/android/app/src/main/java/com/audioplayerdemo/MainApplication.java index 86cea2a..2d3c0ca 100644 --- a/android/app/src/main/java/com/audioplayerdemo/MainApplication.java +++ b/android/app/src/main/java/com/audioplayerdemo/MainApplication.java @@ -9,6 +9,7 @@ import com.facebook.soloader.SoLoader; import java.lang.reflect.InvocationTargetException; import java.util.List; +import com.zmxv.RNSound.RNSoundPackage; public class MainApplication extends Application implements ReactApplication { @@ -25,6 +26,7 @@ protected List getPackages() { List packages = new PackageList(this).getPackages(); // Packages that cannot be autolinked yet can be added manually here, for example: // packages.add(new MyReactNativePackage()); + packages.add(new RNSoundPackage()); return packages; }