react-native-airplay-btn
AirPlay library for iOS
Installation with Automatic Linking
npm i react-native-airplay-btn --savereact-native link
How to create listeners
thisairplayAvailableSubscription = AirPlayListener; thisairplayConnectedSubscription = AirPlayListener; // Remove Listeners in componentWillUnmountthisairPlayConnected;thisairPlayAvailable
Methods
AirPlay; AirPlay;
Create AirPlay Button
; <AirPlayButton style= height: 30 width: 30 justifyContent: 'center' alignItems:'center' />
Note: The AirPlay Button does not show in the simulator
Author
Nadia Dillon