Skip to content

SuperphonicHub/react-native-avroutepickerview

 
 

Repository files navigation

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

About

Thin wrapper around iOS's AVRoutePickerView

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 37.0%
  • Objective-C 27.2%
  • Ruby 11.9%
  • JavaScript 8.3%
  • Kotlin 8.0%
  • TypeScript 6.6%
  • Other 1.0%