An unofficial React Native SDK wrapper for the Doorbell.io user feedback platform.
$ npm install react-native-doorbell --save
- Works on iOS and Android
- Name, email, and field hiding work (have not tested the 'powered by' removal)
- Custom properties may not work on Android (development WIP)
import Doorbell from 'react-native-doorbell';
const doorbellDialog = new Doorbell(APP_ID, API_KEY);
doorbellDialog.show();
// or..
doorbellDialog.show({
email: 'User email', // optional
name: 'User name', // optional
hideEmailField: true, // optional, default false
hidePoweredBy: true, // optional, default false
properties: {
customProperty: 'value', // optional custom properties
}
});
$ react-native link react-native-doorbell
You must be using CocoaPods for linking to work properly, since the official Doorbell SDK is included as a pod.
(manual installation is possible, but not documented yet)