0.4.0 • Published 3 years 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-avroutepickerviewor
yarn add react-native-avroutepickerviewOn iOS, you'll then need to:
cd ios && pod installNote: 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
3 years ago