Skip to content

Commit

Permalink
Register Turbo Module SoundManager in Catalyst, FB4A and Workplace
Browse files Browse the repository at this point in the history
Summary: This diff registers the new Turbo Module SoundManager in Catalyst, FB4A and Workplace

Reviewed By: JoshuaGross

Differential Revision: D16543432

fbshipit-source-id: de3ab175befd5cc11403159e3aa42e5f17d0a280
  • Loading branch information
mdvacca authored and facebook-github-bot committed Aug 2, 2019
1 parent a55ae3a commit 1452acd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions ReactAndroid/src/main/java/com/facebook/react/shell/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ rn_android_library(
react_native_target("java/com/facebook/react/modules/share:share"),
react_native_target("java/com/facebook/react/modules/statusbar:statusbar"),
react_native_target("java/com/facebook/react/modules/storage:storage"),
react_native_target("java/com/facebook/react/modules/sound:sound"),
react_native_target("java/com/facebook/react/modules/timepicker:timepicker"),
react_native_target("java/com/facebook/react/modules/toast:toast"),
react_native_target("java/com/facebook/react/modules/vibration:vibration"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import com.facebook.react.modules.network.NetworkingModule;
import com.facebook.react.modules.permissions.PermissionsModule;
import com.facebook.react.modules.share.ShareModule;
import com.facebook.react.modules.sound.SoundManagerModule;
import com.facebook.react.modules.statusbar.StatusBarModule;
import com.facebook.react.modules.storage.AsyncStorageModule;
import com.facebook.react.modules.timepicker.TimePickerDialogModule;
Expand Down Expand Up @@ -88,6 +89,7 @@
NetworkingModule.class,
PermissionsModule.class,
ShareModule.class,
SoundManagerModule.class,
StatusBarModule.class,
TimePickerDialogModule.class,
ToastModule.class,
Expand Down Expand Up @@ -148,6 +150,8 @@ public MainReactPackage(MainPackageConfig config) {
return new ShareModule(context);
case StatusBarModule.NAME:
return new StatusBarModule(context);
case SoundManagerModule.NAME:
return new SoundManagerModule(context);
case TimePickerDialogModule.FRAGMENT_TAG:
return new TimePickerDialogModule(context);
case ToastModule.NAME:
Expand Down Expand Up @@ -225,6 +229,7 @@ public ReactModuleInfoProvider getReactModuleInfoProvider() {
PermissionsModule.class,
ShareModule.class,
StatusBarModule.class,
SoundManagerModule.class,
TimePickerDialogModule.class,
ToastModule.class,
VibrationModule.class,
Expand Down

0 comments on commit 1452acd

Please sign in to comment.