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

@apollosproject/ui-passes

Package Overview
Dependencies
Maintainers
4
Versions
555
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apollosproject/ui-passes

Display and download Apollos passes in your app!

  • 4.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

Apollos UI: Passes

Display and download Apollos passes in your app!

Installation:

@apollosproject/data-connector-passes is required on your GraphQL instance. See that package for installation instructions.

  1. Install library and peer dependencies from npm:
yarn add @apollosproject/apollos-ui-passes react-native-passkit-wallet rn-fetch-blob
  1. Link native dependencies
yarn run react-native link

Usage

This package exports two components:

  1. A plug-and-play data-connected "route" that you can add right to your @react-navigation/native router:
import Passes from '@apollosproject/apollos-ui-passes`;

const AppNavigator = createStackNavigator(
  {
    Passes,
  }
);

Navigating to this route will open a full-screen view with your pass in the center and an "Add to Apple Wallet" button.

  1. A basic, PassView component
<PassView
  description={String}
  thumbnail={Object}
  barcode={Object}
  primaryFields={Array}
  secondaryFields={Array}
  backgroundColor={String}
  foregroundColor={String}
  labelColor={String}
  isLoading={Boolean}
/>

You could hook this component up to a <Query> if you want to render your own passes elsewhere in your Apollos App.

Keywords

FAQs

Package last updated on 15 Jul 2022

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