![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@titanium/review-dialog
Advanced tools
⭐ Axway Amplify module to use the Apple's Store Review Dialog with Appcelerator Titanium SDK Framework
🪦 RIP Axway Amplify Titanium (2010 - 2022)
🪦 RIP Axway Amplify Cloud Services (2012 - 2022)
🪦 RIP Axway Amplify Crash Analytics (2015 - 2022)
👉 A group of Axway employees, ex-Axway employees, and some developers from Titanium community have created a legal org and now officially decide all matters related to future of these products.
Native module that allows you to use the Apple's Store Review Dialog in Axway Titanium native mobile apps. Uses the
SKStoreReviewController
from iOS 10.3+ in your Titanium application.
This is a repackaging of the compiled iOS module for ti.reviewdialog to allow for installation via npm.
@titanium/review-dialog
in root of projectnpm install @titanium/review-dialog
const win = Ti.UI.createWindow({
backgroundColor: '#fff'
});
const btn = Ti.UI.createButton({
title: 'Open Review Dialog!'
});
btn.addEventListener('click', function() {
const ReviewDialog = require('@titanium/review-dialog');
ReviewDialog.requestReview();
});
win.add(btn);
win.open();
ti.reviewdialog 2.0.0-Beta-1
const dialog = require('@titanium/review-dialog');
There are some important notes on when to show the rating dialog (thanks to @skypanther:
The following (ES6+ based) example shows how to use it in a real world example. It relies on the semver module / http://gitt.io/component/semver to compare app versions. Apple's own example uses a simple launch count to determine "meaningful" amount of use, which is also used in this example. You should use something appropriate for your app (amount of time, completion of an action N times, etc.):
import semver from 'semver';
import Review from 'ti.reviewdialog';
// first, check that the user has used your app for a "meaningful" amount
// here, a simple count of some action
let countOfSomeUserAction = Ti.App.Properties.getInt('countOfSomeUserAction', 0);
countOfSomeUserAction += 1;
Ti.App.Properties.setInt('countOfSomeUserAction', countOfSomeUserAction);
if (countOfSomeUserAction >= 4) {
// if they've done whatever action 4 or more times, check the app version
const lastVersionPromptedForReview = Ti.App.Properties.getString('lastVersionPromptedForReview', '1.0.0');
let appVersion = Ti.App.version;
const appVersionAsArray = appVersion.split('.');
if (appVersionAsArray.length > 3) {
// the semver library supports max 3-part version numbers (per semver rules)
appVersion = appVersionAsArray[0] + '.' + appVersionAsArray[1] + '.' + appVersionAsArray[2];
}
if (semver.gt(appVersion, lastVersionPromptedForReview)) {
// if the current app version is greater-than the last time you prompted them
// prompt them with the titanium-review-dialog alert
Ti.App.Properties.setString('lastVersionPromptedForReview', appVersion);
if (Review.isSupported()) {
Review.requestReview();
}
}
}
This module is also built in Hyperloop to demonstrate the native API access with JavaScript.
You can simple require the ti.reviewdialog.js
in your application and run it!
Request a new review dialog:
const review = require('@titanium/review-dialog');
if (review.isSupported()) {
review.requestReview();
}
isSupported
requestReview
Hans Knoechel (@hansemannnn / Web)
Code contributions are greatly appreciated, please submit a new pull request!
Have an idea or a comment? Join in the conversation here!
Apache 2.0
FAQs
⭐ Axway Amplify module to use the Apple's Store Review Dialog with Appcelerator Titanium SDK Framework
We found that @titanium/review-dialog demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.