Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1.28 KB

README.md

File metadata and controls

45 lines (35 loc) · 1.28 KB

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