Licence
—
Version
1.1.5-a
Deps
10
Size
133 kB
Vulns
1
Weekly
0
fibo-react-native
Getting started
$ npm install fibo-react-native --save
$ yarn add fibo-react-native
Usage
import Fibotalk from 'fibo-react-native';
let fibo = new Fibotalk('<appid>');
// Set user info and account info
fibo.fibotalkSettings = {
user: {
...
userId: "unique user id" // mandatory
...
},
account: {
...
accountId: "unique account id" // mandatory
...
}
};
// Track login event:
fibo.setEvent("login");
// Track signup event:
fibo.setEvent("signup");
// Track any custom event:
fibo.setEvent("event_name", { /* dimensions/values specific to this event */ });