npm install react-native-weloop --saveimportWeloopfrom"react-native-weloop";<WeloopappGuid="YOUR_PROJECT_GUID"/>In order to invoke WeLoop with an automatic authentication, you need to provide the user identity.
<WeloopappGuid="YOUR_PROJECT_GUID"user={{email: "YOUR_EMAIL",firstname: "YOUR_FIRSTNAME",lastname: "YOUR_LASTNAME",key: "YOUR_KEY",}}/>To invoke the Weloop WebView with a custom Button, you need to add props:
<Buttontitle="WebView"onPress={()=>{this.weloop.current.invoke();}}/><Weloopref={this.weloop}custom={false}appGuid="YOUR_PROJECT_GUID"/>| Props | type | description | required | default |
|---|---|---|---|---|
| appGuid | String | Api Key for weloop webview | required | null |
| custom | bool | enable/disable custom invocation | false | |
| user | Object | User informations object with email, firstname, lastname and key | null |
WeLoop is available under the MIT license. See the LICENSE file for more info.