Last active
February 25, 2017 04:48
-
-
Save mikesurowiec/16cc9388d26f96dea02d01515ee8769b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// AudioComponent.js | |
import { | |
NativeModules, | |
} from 'react-native'; | |
const { AudioManager } = NativeModules; | |
async function setPlaying (shouldPlay: boolean) => { | |
const isPlayingNativeResult = await AudioManager.setPlaying(shouldPlay); | |
// do something with the native result | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment