react-apple-wallet-pass v2.15.0
Apple Wallet Pass
React component to render Apple Wallet Passes
User Documentation
Installation
Add this package to your project using yarn
:
yarn add @splio-mobile-wallets/react-apple-wallet-pass
or using npm
:
npm install @splio-mobile-wallets/react-apple-wallet-pass
Usage
import AppleWalletPass from '@splio-mobile-wallets/react-apple-wallet-pass';
<AppleWalletPass {...pkPass}>
Demo (using Storybook)
To build the examples locally, run:
yarn run storybook
Developer Documentation
Yarn/npm Configuration for publishing
Releases of this package must be published to Splio’s GitLab private NPM Registry.
It is assumed that you have configured Yarn/npm at user level as described in the Gowento Engineering Documentation to fetch packages from the private registry.
Yarn/npm must also be configured for publishing to the private registry, which is taken care of at project level by using the provided .npmrc.dist
configuration:
cp .npmrc.dist .npmrc
Publishing
Depending on the targeted semantic version, either of the following three scripts can be ran:
yarn release:patch
yarn release:minor
yarn release:major
These scripts will:
- Update the version in
package.json
, commit and create a tag in the local git branch - Push local branch to remote repository, updating remote list of tags
- Build and publish a new versioned package to the project’s private NPM registry
Note: Under the hood, these scripts must use plain npm publish
bacause other tools such as yarn publish
or np
are incompatible with our hosted private NPM registry in some ways (see for example yarn issue #5310, np issue #424).
License
© Gowento
4 years ago