Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const handleOnRatePress = () => {
const options = {
AppleAppID: '1376878040',
GooglePackageName: 'io.bluewallet.bluewallet',
preferredAndroidMarket: AndroidMarket.Google,
preferInApp: true,
openAppStoreIfInAppFails: true,
fallbackPlatformURL: 'https://bluewallet.io',
};
Rate.rate(options, success => {
if (success) {
console.log('User Rated.');
}
});
};
onRatePress() {
const options = {
AppleAppID: config.IOS_APPSTORE_ID,
GooglePackageName: config.ANDROID_BUNDLE_ID,
preferredAndroidMarket: AndroidMarket.Google,
preferInApp: false,
};
Rate.rate(options, () => null);
}