1.0.7 • Published 4 years ago

react-native-weloop v1.0.7

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

WeLoop-react-native

Install

npm install react-native-weloop --save

Usage

Import

import Weloop from "react-native-weloop";

Simple Example

<Weloop appGuid="YOUR_PROJECT_GUID" />

Automatic Authentication

In order to invoke WeLoop with an automatic authentication, you need to provide the user identity.

<Weloop
    appGuid="YOUR_PROJECT_GUID"
    user={{
        email: "YOUR_EMAIL",
        firstname: "YOUR_FIRSTNAME",
        lastname: "YOUR_LASTNAME",
        key: "YOUR_KEY",
    }}
/>

Custom Invocation

To invoke the Weloop WebView with a custom Button, you need to add props:

<Button
  title="WebView"
  onPress={() => {
    this.weloop.current.invoke();
  }}
/>
<Weloop
  ref={this.weloop}
  custom={false}
  appGuid="YOUR_PROJECT_GUID"
/>

Props

Weloop props

Propstypedescriptionrequireddefault
appGuidStringApi Key for weloop webviewrequirednull
customboolenable/disable custom invocationfalse
userObjectUser informations object with email, firstname, lastname and keynull

License

WeLoop is available under the MIT license. See the LICENSE file for more info.