Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add copy to clipboard #3

Conversation

tecnoloco
Copy link

This will add the capability to copy to the clipboard revealed data.

Relates to #1

Example

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)}>
// To trigger copy after revealed:
<Button onPress={vgsShow.current?.copyToClipboard()} title="Copy">

@tecnoloco
Copy link
Author

Hi @dotansimha, do you know if this project is still being supported?

@dotansimha
Copy link
Member

Maybe @orenreu can help with this one

@orenreu
Copy link

orenreu commented Jan 9, 2023

@tecnoloco Not really maintaining this at this point

@orenreu orenreu closed this Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants