vgs-show-react-native
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

vgs-show-react-native

A react-native wrapper for VGS Show for displaying secure information using a proxy.

Installation

npm install vgs-show-react-native

Usage

import VgsShowAttribute from 'vgs-show-react-native';

// ...

const vgsShow = React.useRef<VgsShowAttribute> = null;

<VgsShowAttribute
  ref={vgsShow}
  initParams={{
    environment: ENV,
    vaultId: VAULT_ID,
    // optional, if needed for the upstream service
    customHeaders: {
      Authorization: 'Bearer ' + customerToken,
    },
  }}
  contentPath="data.attributes.pan"
  placeholder="Value will appear here"
  style={styles.box}
/>;

// To trigger reveal:
<Button onPress={vgsShow.current?.reveal(PATH, METHOD, CUSTOM_PAYLOAD)}>

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Package Sidebar

Install

npm i vgs-show-react-native

Weekly Downloads

4

Version

0.1.2

License

MIT

Unpacked Size

239 kB

Total Files

96

Last publish

Collaborators

  • dotansimha