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.
Install in your application directory:
npm install --save react-native-uservoice
or
yarn add react-native-uservoice
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]);