Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guidesmiths/react-native-uservoice
A React Native client for the uservoice SDK
https://github.com/guidesmiths/react-native-uservoice
Last synced: 2 months ago
JSON representation
A React Native client for the uservoice SDK
- Host: GitHub
- URL: https://github.com/guidesmiths/react-native-uservoice
- Owner: guidesmiths
- License: isc
- Created: 2018-05-22T16:47:06.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-25T15:17:38.000Z (about 1 year ago)
- Last Synced: 2024-10-01T15:38:59.903Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 252 KB
- Stars: 2
- Watchers: 11
- Forks: 3
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 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](https://img.shields.io/npm/v/react-native-uservoice.svg?style=flat-square)](https://www.npmjs.com/package/react-native-uservoice)
[![npm downloads](https://img.shields.io/npm/dm/react-native-uservoice.svg?style=flat-square)](https://www.npmjs.com/package/react-native-uservoice)## Installation
Install in your application directory:
```
npm install --save react-native-uservoice
```or
```
yarn add react-native-uservoice
```## Usage
For example
```js
let clientUserVoice = await clientProvider({
apiKey: 'xxxxxx',
apiSecret: 'xxxxxx',
subdomain: 'xxxxx',
});
clientUserVoice = await clientUserVoice.withoutLogin();
const list = await clientUserVoice.topicService.list();
```Example redux-saga
```js
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]);
```