Skip to content
This repository has been archived by the owner on May 15, 2021. It is now read-only.

↗️ Easily allow your users to share their verified personal information directly with your application

License

Notifications You must be signed in to change notification settings

hellobloom/share-kit-reactnative

Repository files navigation

⚠️ Notice ⚠️

This library is no longer maintained, please use ssi-sdk instead.

Share Kit React Native

Important: This repository is no longer maintained. It has been moved to the attestations-es monorepo.

Share Kit React Native

React Native wrapper for Share Kit

Installation

npm install --save @bloomprotocol/share-kit-reactnative

You may need to also link these dependencies

react-native link react-native-svg
react-native link react-native-linear-gradient

Usage

RequestButton will render a button that opens the Bloom app to share specified data.

import React from 'react'
import {RequestButton, Action, RequestData} from '@bloomprotocol/share-kit-reactnative'

const requestData: RequestData = {
  action: Action.attestation,
  token: 'a08714b92346a1bba4262ed575d23de3ff3e6b5480ad0e1c82c011bab0411fdf',
  url: 'https://receive-kit.bloom.co/api/receive',
  org_logo_url: 'https://bloom.co/images/notif/bloom-logo.png',
  org_name: 'Bloom',
  org_usage_policy_url: 'https://bloom.co/legal/terms',
  org_privacy_policy_url: 'https://bloom.co/legal/privacy',
  types: ['phone', 'email'],
}

const buttonCallbackUrl = 'https://mysite.com/bloom-callback'
<RequestButton
  requestData={requestData}
  callbackUrl={callbackUrl}
  size="lg"
  type="log-in"
/>

More

For more information and documentation see Share Kit

Storyboard Demo

Build Libary

  1. Build the library
npm run build
  1. Run the storybook

    cd example
    
    • On android
    react-native run-andoird
    
    • On ios
    react-native run-ios
    

About

↗️ Easily allow your users to share their verified personal information directly with your application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published