Skip to content

Commit 22b5e6c

Browse files
committed
Fix trackEvent error
1 parent 74fa343 commit 22b5e6c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

android/src/main/java/com/reactlibrary/RNPushbotsModule.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ public void removeTag(String value){
4949
}
5050

5151
@ReactMethod
52-
public void trackEvent(String event_key){
52+
public void trackEvent(String value){
5353
if(value != null && !value.isEmpty()){
54-
Pushbots.sharedInstance().trackEvent(event_key);
54+
Pushbots.sharedInstance().trackEvent(value);
5555
}
5656
}
5757

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pushbots-react-native",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "PushBots React Native plugin",
55
"main": "index",
66
"scripts": {

0 commit comments

Comments
 (0)