README
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
- Build the library
npm run build
- Run the storybook
cd example
- On android
react-native run-andoird
- On ios
react-native run-ios