0.4.0 • Published 1 year ago
react-native-avroutepickerview v0.4.0
react-native-avroutepickerview
iOS AVRoutePickerView for React Native. Provides a native AirPlay button and corresponding view for selecting the AV "route". Use this module to add native AirPlay functionality to your React Native app on iOS! Forked from react-native-avroutepicker
when it was no longer building or working correctly.
Installation
npm install react-native-avroutepickerview
or
yarn add react-native-avroutepickerview
On iOS, you'll then need to:
cd ios && pod install
Note: The iOS simulator won't show the pop-up UI when you click the picker, at least in some versions of the simulator. The only reliable way to see the sytsem picker menu is to run it on a device.
Usage
import AVRoutePickerView from 'react-native-avroutepickerview';
// ...
<AVRoutePicker color="white" activeColor="blue" />;
Properties
Name | Type | Description |
---|---|---|
color | string | (optional) Icon color when AirPlay is inactive. |
activeColor | string | (optional) Icon color when AirPlay is active. |
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
0.4.0
1 year ago