UNPKG

react-native-audio-api

Version:

react-native-audio-api provides system for controlling audio in React Native environment compatible with Web Audio API specification

12 lines (11 loc) 417 B
"use strict"; import { createContext, useContext } from 'react'; export const AudioComponentContext = /*#__PURE__*/createContext(undefined); export function useAudioTagContext() { const context = useContext(AudioComponentContext); if (context === undefined) { throw new Error('useAudioTagContext must be used within an <Audio> component.'); } return context; } //# sourceMappingURL=AudioTagContext.js.map