Skip to content

Commit e3ec8db

Browse files
mdvaccafacebook-github-bot
authored andcommitted
Deprecate method UIManagerModule.playTouchSound()
Summary: The method UIManagerModule.playTouchSound() is deprecated, please use SoundManager.playTouchSound() instead. Reviewed By: JoshuaGross Differential Revision: D16543436 fbshipit-source-id: 4b391dd1a0af16567ea5574ddfa33484ca488b90
1 parent 1452acd commit e3ec8db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java

+2
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,9 @@ public void dispatchCommand(int reactTag, String commandId, @Nullable ReadableAr
692692
mUIImplementation.dispatchViewManagerCommand(reactTag, commandId, commandArgs);
693693
}
694694

695+
/** @deprecated use {@link SoundManager#playTouchSound()} instead. */
695696
@ReactMethod
697+
@Deprecated
696698
public void playTouchSound() {
697699
AudioManager audioManager =
698700
(AudioManager) getReactApplicationContext().getSystemService(Context.AUDIO_SERVICE);

0 commit comments

Comments
 (0)