Skip to content

Commit

Permalink
Add SoundManager + deprecate UIManager.playTouchSound (facebook#616)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgny authored and MoOx committed Oct 28, 2019
1 parent 53b4554 commit e073201
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/apis/SoundManager.bs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */
11 changes: 11 additions & 0 deletions src/apis/SoundManager.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
id: apis/SoundManager
title: SoundManager
wip: true
---

```reason
// Android-only
[@bs.module "react-native"] [@bs.scope "SoundManager"]
external playTouchSound: unit => unit = "";
```
3 changes: 3 additions & 0 deletions src/apis/SoundManager.re
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Android-only
[@bs.module "react-native"] [@bs.scope "SoundManager"]
external playTouchSound: unit => unit = "";
3 changes: 3 additions & 0 deletions src/apis/UIManager.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ external setJSResponder: (int, bool) => unit = "";
external clearJSResponder: unit => unit = "";
// Android-only
[@deprecated
"Deprecated with RN 0.61.1, please use ReactNative.SoundManager.playTouchSound instead"
]
[@bs.module "react-native"] [@bs.scope "UIManager"]
external playTouchSound: unit => unit = "";
Expand Down
6 changes: 5 additions & 1 deletion src/apis/UIManager.re
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,9 @@ external setJSResponder: (int, bool) => unit = "";
external clearJSResponder: unit => unit = "";

// Android-only
[@bs.module "react-native"] [@bs.scope "UIManager"]
[@deprecated
"Deprecated with RN 0.61.1, please use ReactNative.SoundManager.playTouchSound instead"
]
[@bs.module "react-native"]
[@bs.scope "UIManager"]
external playTouchSound: unit => unit = "";

0 comments on commit e073201

Please sign in to comment.