npm

Need private packages and team management tools?Check out npm Orgs. »

mopinion-react-native-sdk

0.3.3 • Public • Published

license

Mopinion for React Native

Easily collect in-app feedback with the Mopinion SDK for React Native.

Installation

To install the Mopinion SDK into your React Native Application:

  1. In a terminal window, navigate to the root directory of your project and run :
npm install mopinion-react-native-sdk
  1. Link assets
react-native link mopinion-react-native-sdk
react-native link react-native-view-shot

Implementing the SDK

Import the Mopinion SDK in your main app file:

import { MopinionSDK, MopinionDeployment } from 'mopinion-react-native-sdk'

Loading your deployment

Add a <MopinionDeployment /> component with your deployment ID to your JSX:

<MopinionDeployment deploymentID={'YOUR_ID_HERE'} />

Trigger forms by calling the event emitter.

MopinionSDK.event('_button')

Passing meta data from your app into Mopinion forms

You can send an object of data along with the feedback sent by your users using the metaData prop. This is useful for passing along various metadata that you want want to have linked to a users feedback.

<MopinionDeployment 
    deploymentID={'YOUR_ID_HERE'} 
    metaData={{
        meta:'value',
        meta2:'value2',
        meta3:'value3'
    }}
/>

Support

Mopinion For React Native is maintained by the Mopinion Development Team. For support contact support@mopinion.com

install

npm i mopinion-react-native-sdk

Downloadsweekly downloads

74

version

0.3.3

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability