Skip to content

Commit d06ae1f

Browse files
committed
v12.0.2
1 parent 7b6491d commit d06ae1f

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ repositories {
5151

5252
dependencies {
5353
implementation "com.facebook.react:react-native:+"
54-
implementation group: 'io.gleap', name: 'gleap-android-sdk', version: '12.0.1'
54+
implementation group: 'io.gleap', name: 'gleap-android-sdk', version: '12.0.2'
5555

5656

5757
if(rootProject && rootProject.ext) {

example/index.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,20 @@
22
* @format
33
*/
44

5-
import {AppRegistry} from 'react-native';
5+
import { AppRegistry } from 'react-native';
66
import App from './App';
7-
import {name as appName} from './app.json';
7+
import { name as appName } from './app.json';
88
import Gleap from 'react-native-gleapsdk';
99

1010
Gleap.initialize('X5C0grjFCjUMbZKi131MjZLaGRwg2iKH');
1111

12+
Gleap.registerListener('customActionTriggered', (data) => {
13+
console.log("data", data);
14+
if (data.name === 'CUSTOM_HELP') {
15+
setTimeout(() => {
16+
Gleap?.openHelpCenterCollection("1", true);
17+
}, 1500);
18+
}
19+
});
20+
1221
AppRegistry.registerComponent(appName, () => App);

example/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-gleapsdk",
3-
"version": "12.0.1",
3+
"version": "12.0.2",
44
"description": "Know exactly why and how a bug happened. Get reports with screenshots, live action replays and all of the important metadata every time.",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",

0 commit comments

Comments
 (0)