0.0.2 • Published 6 years ago

uservoice-react-native v0.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

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.

npm version npm downloads

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]);