0.0.5 • Published 6 years ago
react-native-uservoice v0.0.5
react-native-uservoice
A react-native sdk of the v1 api of UserVoice. This implementation only has little functionality for now and would be happy to receive many pull-requests.
Installation
Install in your application directory:
npm install --save react-native-uservoice
or
yarn add react-native-uservoice
Usage
For example
let clientUserVoice = await clientProvider({
apiKey: 'xxxxxx',
apiSecret: 'xxxxxx',
subdomain: 'xxxxx',
});
clientUserVoice = await clientUserVoice.withoutLogin();
const list = await clientUserVoice.topicService.list();
Example redux-saga
let clientUserVoice = yield call(clientProvider, {
apiKey: xxxxx,
apiSecret: xxxx,
subdomain: xxxx,
wrapperFetch // Your custom implementation fetch
});
clientUserVoice = yield call([clientUserVoice, clientUserVoice.withoutLogin]);
const list = yield call([clientUserVoice.topicService, clientUserVoice.topicService.list]);