React SDK
Use Case
The React SDK is appropriate for implementing Pinwheel in your web app.
In iOS and Android apps, it is strongly recommended to use one of the Native Mobile SDKs (not the React SDK or Web SDK) to achieve the best user experience and performance.
Installation
Pinwheel's React package can be installed using npm.
npm install --save @pinwheel/react-modal
Usage
Add it to your React app.
import PinwheelModal from '@pinwheel/react-modal'
const App = () => {
return <PinwheelModal linkToken={token} open={true} />
}
The open
prop is a boolean to describe whether the modal is open or not.
See additional props here.
Updated 12 days ago