File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Libraries/Components/Touchable Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ const StyleSheet = require('../../StyleSheet/StyleSheet');
1919const TVEventHandler = require ( '../AppleTV/TVEventHandler' ) ;
2020const UIManager = require ( '../../ReactNative/UIManager' ) ;
2121const View = require ( '../View/View' ) ;
22- const SoundManager = require ( '../Sound/SoundManager' ) ;
2322
2423const keyMirror = require ( 'fbjs/lib/keyMirror' ) ;
2524const normalizeColor = require ( '../../Color/normalizeColor' ) ;
@@ -876,7 +875,7 @@ const TouchableMixin = {
876875 this . _endHighlight ( e ) ;
877876 }
878877 if ( Platform . OS === 'android' && ! this . props . touchSoundDisabled ) {
879- SoundManager . playTouchSound ( ) ;
878+ this . _playTouchSound ( ) ;
880879 }
881880 this . touchableHandlePress ( e ) ;
882881 }
@@ -886,6 +885,10 @@ const TouchableMixin = {
886885 this . touchableDelayTimeout = null ;
887886 } ,
888887
888+ _playTouchSound : function ( ) {
889+ UIManager . playTouchSound ( ) ;
890+ } ,
891+
889892 _startHighlight : function ( e : PressEvent ) {
890893 this . _savePressInLocation ( e ) ;
891894 this . touchableHandleActivePressIn && this . touchableHandleActivePressIn ( e ) ;
You can’t perform that action at this time.
0 commit comments