Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement