diff --git a/Libraries/Components/Touchable/Touchable.js b/Libraries/Components/Touchable/Touchable.js index 4b33c32892..a37a4fa24d 100644 --- a/Libraries/Components/Touchable/Touchable.js +++ b/Libraries/Components/Touchable/Touchable.js @@ -19,7 +19,6 @@ const StyleSheet = require('../../StyleSheet/StyleSheet'); const TVEventHandler = require('../AppleTV/TVEventHandler'); const UIManager = require('../../ReactNative/UIManager'); const View = require('../View/View'); -const SoundManager = require('../Sound/SoundManager'); const keyMirror = require('fbjs/lib/keyMirror'); const normalizeColor = require('../../Color/normalizeColor'); @@ -876,7 +875,7 @@ const TouchableMixin = { this._endHighlight(e); } if (Platform.OS === 'android' && !this.props.touchSoundDisabled) { - SoundManager.playTouchSound(); + this._playTouchSound(); } this.touchableHandlePress(e); } @@ -886,6 +885,10 @@ const TouchableMixin = { this.touchableDelayTimeout = null; }, + _playTouchSound: function() { + UIManager.playTouchSound(); + }, + _startHighlight: function(e: PressEvent) { this._savePressInLocation(e); this.touchableHandleActivePressIn && this.touchableHandleActivePressIn(e);