Skip to content

Repository files navigation

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

About

React Native AirPlay Module

Resources

Code of conduct

Contributing

Stars

3 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages