Wisho React Native SDK
Introduction
Wisho React Native SDK allows your mobile users to make video calls with your sales consultants.
Installation
npm i react-native-wisho --save
Usage
Initialization
import Wisho from 'react-native-wisho';
var wisho = new Wisho({
apiKey: 'your api key',
secretKey: 'your secret key'
});
As you can see, credentials information provided while creating new instance of Wisho class. If you do not provide Wisho credentials, default values will be fetched from environment variables by following names.
WISHO_API_KEY
WISHO_SECRET_KEY
In other words, you can initialize Wisho object like following:
var wisho = new Wisho();
Sample Usage
import {WishoButton} from 'react-native-wisho';
<WishoButton />
API Preferences
WishoButton Props
Name | Description | Default | Type |
---|---|---|---|
backgroundColor | Background color of the button | #ff6500 | String |
borderWidth | Border width of the button | 1 | Number |
borderColor | Outside border color for the button | rgba(255, 255, 255, 0.5) | String |
textColor | Color of the button title | #ffffff | String |
textWeight | Font weight of the button title | 400 | String |
buttonText | Text of the button | Connect via Wisho | String |
Testing
You need to have jest installed on your machine in order to run tests.
npm test
Versions
react-native-wisho
uses a modified version of Semantic Versioning for all changes.
Author
Originally by Wisho (info@wishoapp.com). Now officially maintained by Wisho.
License
Wisho React Native SDK is open-sourced software licensed under the MIT license.