Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@douglowder/expo-av-route-picker-view

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@douglowder/expo-av-route-picker-view

React Native wrapper for the iOS AVRoutePickerView (selector for AirPlay devices)

  • 0.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-80%
Maintainers
0
Weekly downloads
 
Created
Source

expo-av-route-picker-view

iOS/tvOS only React Native wrapper for the AVRoutePickerView (selector for AirPlay devices)

Example

(See also the working example in this repo.

import { Pressable, StyleSheet, Text, View } from 'react-native';

import { ExpoAvRoutePickerView } from 'expo-av-route-picker-view';

export default function App() {
  return (
    <View style={styles.container}>
      <Pressable onPress={() => {}}>
        {({ pressed, focused }) => {
          return (
            <View style={{ opacity: focused || pressed ? 0.6 : 1.0 }}>
              <Text>Here is the route picker!</Text>
            </View>
          );
        }}
      </Pressable>
      <ExpoAvRoutePickerView
        style={styles.picker}
        tintColor="#000000"
        activeTintColor="#0000FF"
        prioritizesVideoDevices
      />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    alignItems: 'center',
    justifyContent: 'center',
  },
  picker: {
    width: 100,
    height: 100,
  },
});

Installation in managed Expo projects

For managed Expo projects, please follow the installation instructions in the API documentation for the latest stable release. If you follow the link and there is no documentation available then this library is not yet usable within managed projects — it is likely to be included in an upcoming Expo SDK release.

Installation in bare React Native projects

For bare React Native projects, you must ensure that you have installed and configured the expo package before continuing.

Add the package to your npm dependencies

npm install expo-av-route-picker-view

Configure for iOS

Run npx pod-install after installing the npm package.

Contributing

Contributions are very welcome! Please refer to guidelines described in the contributing guide.

Keywords

FAQs

Package last updated on 05 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc