@@ -21,18 +21,26 @@ if (Platform.OS.match("android")) {
2121}
2222
2323// countly initialization
24- Countly . init = function ( serverUrl , appKey , deviceId , starRatingLimit , titleText , messageText , buttonText , consentFlag ) {
24+ Countly . init = function ( serverUrl ,
25+ appKey ,
26+ deviceId = "" ,
27+ starRatingAutoSessionCount = "0" ,
28+ starRatingTitle = "Rate us." ,
29+ starRatingMessage = "How would you rate the app?" ,
30+ starRatingButtonText = "Dismiss" ,
31+ consentFlag = false
32+ ) {
2533 Countly . serverUrl = serverUrl ;
2634 Countly . appKey = appKey ;
2735 var args = [ ] ;
28- args . push ( serverUrl || "" ) ;
29- args . push ( appKey || "" ) ;
30- args . push ( deviceId || "" ) ;
31- args . push ( starRatingLimit || "5" ) ;
32- args . push ( titleText || "Rate us." ) ;
33- args . push ( messageText || "How would you rate the app?" ) ;
34- args . push ( buttonText || "Dismiss" ) ;
35- args . push ( consentFlag || false ) ;
36+ args . push ( serverUrl ) ;
37+ args . push ( appKey ) ;
38+ args . push ( deviceId ) ;
39+ args . push ( starRatingAutoSessionCount ) ;
40+ args . push ( starRatingTitle ) ;
41+ args . push ( starRatingMessage ) ;
42+ args . push ( starRatingButtonText ) ;
43+ args . push ( consentFlag ) ;
3644
3745 CountlyReactNative . init ( args ) ;
3846}
@@ -92,7 +100,6 @@ Countly.recordView = function(recordView){
92100 CountlyReactNative . recordView ( [ recordView || "" ] ) ;
93101} ;
94102
95- // countly enable logger
96103Countly . setViewTracking = function ( boolean ) {
97104 CountlyReactNative . setViewTracking ( [ boolean || "false" ] ) ;
98105}
0 commit comments