countly-sdk-react-native-bridge
Advanced tools
Comparing version 20.4.0 to 20.4.1
@@ -108,4 +108,13 @@ /** | ||
Countly.recordView = function(recordView){ | ||
CountlyReactNative.recordView([recordView || ""]); | ||
Countly.recordView = function(recordView, segments){ | ||
var args = []; | ||
args.push(String(recordView) || ""); | ||
if(!segments){ | ||
segments = {}; | ||
} | ||
for(var key in segments){ | ||
args.push(key); | ||
args.push(segments[key]); | ||
} | ||
CountlyReactNative.recordView(args); | ||
}; | ||
@@ -499,4 +508,5 @@ | ||
Countly.showStarRating = function(){ | ||
CountlyReactNative.showStarRating([]); | ||
Countly.showStarRating = function(callback){ | ||
if(!callback){callback = function(){}}; | ||
CountlyReactNative.showStarRating([], callback); | ||
} | ||
@@ -503,0 +513,0 @@ |
@@ -481,2 +481,3 @@ import React, { Component } from 'react'; | ||
< Button onPress = { function(){Countly.recordView("Dashboard")} } title = "Record View: 'Dashboard'" color = "#e0e0e0"> </Button> | ||
< Button onPress = { function(){Countly.recordView("HomePage", {"version": "1.0", "_facebook_version": "0.0.1"})} } title = "Record View: 'HomePage' with Segment" color = "#e0e0e0"> </Button> | ||
< Button onPress={this.enableLogging} title='Enable Logging' color='#00b5ad' /> | ||
@@ -483,0 +484,0 @@ < Button onPress={this.disableLogging} title='Disable Logging' color='#00b5ad' /> |
{ | ||
"name": "countly-sdk-react-native-bridge", | ||
"version": "20.4.0", | ||
"version": "20.4.1", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Trinisoft Technologies", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
228716
2005