react-native-airplay-module
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

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

Package Sidebar

Install

npm i react-native-airplay-module

Weekly Downloads

44

Version

0.2.3

License

MIT

Unpacked Size

18.5 kB

Total Files

19

Last publish

Collaborators

  • spicy_sparks