SoundManager.js 475 B

12345678910111213141516171819202122
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. * @format
  8. * @flow strict-local
  9. */
  10. 'use strict';
  11. import NativeSoundManager from './NativeSoundManager';
  12. const SoundManager = {
  13. playTouchSound: function(): void {
  14. if (NativeSoundManager) {
  15. NativeSoundManager.playTouchSound();
  16. }
  17. },
  18. };
  19. module.exports = SoundManager;