react-native-wisho

1.2.0 • Public • Published

Wisho React Native SDK

NPM

Build Status NPM npm Requires.io Codecov

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.

Package Sidebar

Install

npm i react-native-wisho

Weekly Downloads

25

Version

1.2.0

License

MIT

Unpacked Size

297 kB

Total Files

43

Last publish

Collaborators

  • bilalbaraz
  • wisho