@bloomprotocol/share-kit-reactnativedeprecated

React Native implementation of @bloomprotocol/share-kit

Usage no npm install needed!

<script type="module">
  import bloomprotocolShareKitReactnative from 'https://cdn.skypack.dev/@bloomprotocol/share-kit-reactnative';
</script>

README

Share Kit React Native

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 = {...}

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