Socket
Socket
Sign inDemoInstall

@apollosproject/ui-passes

Package Overview
Dependencies
1
Maintainers
4
Versions
555
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @apollosproject/ui-passes

Display and download Apollos passes in your app!


Version published
Weekly downloads
2K
decreased by-26.36%
Maintainers
4
Created
Weekly downloads
 

Changelog

Source

4.2.0 (2022-07-15)

Features

Bug Fixes

Readme

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

Last updated on 15 Jul 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc