Skip to content

Commit

Permalink
Deprecate method UIManagerModule.playTouchSound()
Browse files Browse the repository at this point in the history
Summary: The method UIManagerModule.playTouchSound() is deprecated, please use SoundManager.playTouchSound() instead.

Reviewed By: JoshuaGross

Differential Revision: D16543436

fbshipit-source-id: 4b391dd1a0af16567ea5574ddfa33484ca488b90
  • Loading branch information
mdvacca authored and facebook-github-bot committed Aug 2, 2019
1 parent 1452acd commit e3ec8db
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,9 @@ public void dispatchCommand(int reactTag, String commandId, @Nullable ReadableAr
mUIImplementation.dispatchViewManagerCommand(reactTag, commandId, commandArgs);
}

/** @deprecated use {@link SoundManager#playTouchSound()} instead. */
@ReactMethod
@Deprecated
public void playTouchSound() {
AudioManager audioManager =
(AudioManager) getReactApplicationContext().getSystemService(Context.AUDIO_SERVICE);
Expand Down

0 comments on commit e3ec8db

Please sign in to comment.