diff --git a/CountlyRNExample/App.tsx b/CountlyRNExample/App.tsx index b677f60..7bdda42 100644 --- a/CountlyRNExample/App.tsx +++ b/CountlyRNExample/App.tsx @@ -497,21 +497,21 @@ class Example extends Component { }; showSurvey = () => { - Countly.getFeedbackWidgets((retrivedWidgets, error) => { + Countly.feedback.getAvailableFeedbackWidgets((retrivedWidgets, error) => { if (error != null) { console.log('showSurvey Error : ' + error); } else { console.log('showSurvey Success : ' + retrivedWidgets.length); var surveyWidget = retrivedWidgets.find((x) => x.type === 'survey'); if (surveyWidget) { - Countly.presentFeedbackWidgetObject( + Countly.feedback.presentFeedbackWidget( surveyWidget, 'Close', function () { - console.log('showSurvey presentFeedbackWidgetObject : ' + 'Widgetshown'); + console.log('showSurvey presentFeedbackWidget : ' + 'Widgetshown'); }, function () { - console.log('showSurvey presentFeedbackWidgetObject : ' + 'Widgetclosed'); + console.log('showSurvey presentFeedbackWidget : ' + 'Widgetclosed'); } ); } @@ -520,21 +520,21 @@ class Example extends Component { }; showNPS = () => { - Countly.getFeedbackWidgets((retrivedWidgets, error) => { + Countly.feedback.getAvailableFeedbackWidgets((retrivedWidgets, error) => { if (error != null) { console.log('showNPS Error : ' + error); } else { console.log('showNPS Success : ' + retrivedWidgets.length); var npsWidget = retrivedWidgets.find((x) => x.type === 'nps'); if (npsWidget) { - Countly.presentFeedbackWidgetObject( + Countly.feedback.presentFeedbackWidget( npsWidget, 'Close', function () { - console.log('showNPS presentFeedbackWidgetObject : ' + 'Widgetshown'); + console.log('showNPS presentFeedbackWidget : ' + 'Widgetshown'); }, function () { - console.log('showNPS presentFeedbackWidgetObject : ' + 'Widgetclosed'); + console.log('showNPS presentFeedbackWidget : ' + 'Widgetclosed'); } ); } @@ -543,21 +543,21 @@ class Example extends Component { }; showRating = () => { - Countly.getFeedbackWidgets((retrivedWidgets, error) => { + Countly.feedback.getAvailableFeedbackWidgets((retrivedWidgets, error) => { if (error != null) { console.log('showRating Error : ' + error); } else { console.log('showRating Success : ' + retrivedWidgets.length); const ratingWidget = retrivedWidgets.find((x) => x.type === 'rating'); if (ratingWidget) { - Countly.presentFeedbackWidgetObject( + Countly.feedback.presentFeedbackWidget( ratingWidget, 'Close', function () { - console.log('showRating presentFeedbackWidgetObject : Widgetshown'); + console.log('showRating presentFeedbackWidget : Widgetshown'); }, function () { - console.log('showRating presentFeedbackWidgetObject : Widgetclosed'); + console.log('showRating presentFeedbackWidget : Widgetclosed'); } ); } diff --git a/CountlyRNExample/ios/Podfile.lock b/CountlyRNExample/ios/Podfile.lock index cd67340..05e5444 100644 --- a/CountlyRNExample/ios/Podfile.lock +++ b/CountlyRNExample/ios/Podfile.lock @@ -1,10 +1,10 @@ PODS: - boost (1.76.0) - CocoaAsyncSocket (7.6.5) - - CountlyReactNative (23.6.0): - - CountlyReactNative/NotificationService (= 23.6.0) + - CountlyReactNative (23.8.1): + - CountlyReactNative/NotificationService (= 23.8.1) - React - - CountlyReactNative/NotificationService (23.6.0): + - CountlyReactNative/NotificationService (23.8.1): - React - DoubleConversion (1.1.6) - FBLazyVector (0.71.0) @@ -383,7 +383,7 @@ PODS: - React-jsi (= 0.71.0) - React-logger (= 0.71.0) - React-perflogger (= 0.71.0) - - SocketRocket (0.6.0) + - SocketRocket (0.6.1) - Yoga (1.14.0) - YogaKit (1.18.1): - Yoga (~> 1.14) @@ -543,7 +543,7 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: boost: 57d2868c099736d80fcd648bf211b4431e51a558 CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 - CountlyReactNative: 7a67c409ff0a08188a0cf218aed596bacb323650 + CountlyReactNative: a9570036edcc4a4bf65d802f1a14c4f3a63a77f1 DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54 FBLazyVector: 61839cba7a48c570b7ac3e1cd8a4d0948382202f FBReactNativeSpec: 5a14398ccf5e27c1ca2d7109eb920594ce93c10d @@ -588,7 +588,7 @@ SPEC CHECKSUMS: React-RCTVibration: 55c91eccdbd435d7634efbe847086944389475b0 React-runtimeexecutor: ac80782d9d76ba2b0f709f4de0c427fe33c352dc ReactCommon: 20e38a9be5fe1341b5e422220877cc94034776ba - SocketRocket: fccef3f9c5cedea1353a9ef6ada904fde10d6608 + SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17 Yoga: c618b544ff8bd8865cdca602f00cbcdb92fd6d31 YogaKit: f782866e155069a2cca2517aafea43200b01fd5a diff --git a/CountlyRNExample/package.json b/CountlyRNExample/package.json index 90233c9..2e747cc 100644 --- a/CountlyRNExample/package.json +++ b/CountlyRNExample/package.json @@ -10,7 +10,7 @@ "test": "jest" }, "dependencies": { - "countly-sdk-react-native-bridge": "23.6.1", + "countly-sdk-react-native-bridge": "23.8.1", "react": "18.2.0", "react-native": "0.71.0" },