From ReactNativeNation.com Community
SatisMeter is mobile and web platform for collecting customer feedback, based on Net Promoter Score.
This package contains a survey widget that can be easily integrated into any React Native application.
$ yarn add react-native-satismeter
First of all you should create your account in https://satismeter.com
Add the following code to your RN application.
import Satismeter from 'react-native-satismeter';
Satismeter.hook('<USER_ID>', '<WRITE_KEY>', {}, (message) => {
this.setState({
status: 'Hi Satismeter',
});
});
Replace the WRITE_KEY
with the one found in SatisMeter settings / Integrations / API Keys.
Replace USER_ID
with the ones of the currently logged-in user.
Pass an object containing string values to set custom user traits.
import Satismeter from 'react-native-satismeter';
Satismeter.hook('<USER_ID>', '<WRITE_KEY>', {
"name": "Sam Harris",
"twitter": "@SamHarrisOrg"
}, (message) => {
this.setState({
status: 'Hi Satismeter',
});
});
James Jara đ đ» â ïž đ |
If you have any question, suggestion or recommendation, please open an issue about it.
If you decided you want to introduce something to the project, please read contribution guidelines first.
react-native-satismeter is available under the MIT license. See the LICENSE file for more info.