0.2.3 • Published 6 months ago
react-native-airplay-module v0.2.3
react-native-airplay-module
React Native AirPlay Module
Installation
npm install react-native-airplay-module
yarn add react-native-airplay-module
Usage
import AirPlay from 'react-native-airplay-module'
useEffect(() => {
AirPlay.startScan()
AirPlay.AirPlayListener.addListener('deviceConnected', ({ devices }) => {
console.log(devices)
})
return () => {
AirPlay.disconnect()
}
}, [])
const openMenu = () => {
AirPlay.openMenu()
}
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT