Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

expo-store-review

Package Overview
Dependencies
Maintainers
24
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-store-review - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

36

build/StoreReview.d.ts
/**
* Determines if the platform has the capabilities to use `StoreReview.requestReview()`.
* @return
* This returns a promise fulfills with `boolean`, depending on the platform:
* - On iOS, it will resolve to `true` if the device is running iOS 10.3+.
* - On Android, it will resolve to `true` if the device is running Android 5.0+.
* - On Web, it will resolve to `false`.
* Determine if the platform has the capabilities to use `requestedReview`
* - iOS: `true` if iOS 10.3 or greater and the StoreKit framework is linked
* - Android: `true` if Android 5.0 or greater and PlayStore is installed
* - web: Always `false`
*/
export declare function isAvailableAsync(): Promise<boolean>;
/**
* In ideal circumstances this will open a native modal and allow the user to select a star rating
* that will then be applied to the App Store, without leaving the app. If the device is running
* a version of iOS lower than 10.3, or a version of Android lower than 5.0, this will attempt
* to get the store URL and link the user to it.
* Use the iOS `SKStoreReviewController` or Android `ReviewManager` API
* to prompt a user rating without leaving the app.
*/
export declare function requestReview(): Promise<void>;
/**
* This uses the `Constants` API to get the `Constants.manifest.ios.appStoreUrl` on iOS, or the
* `Constants.manifest.android.playStoreUrl` on Android.
*
* On Web this will return `null`.
* Get your app's store URLs from `app.config.js` or `app.json`:
* - iOS: https://docs.expo.io/versions/latest/workflow/configuration#appstoreurlurl-to-your-app-on-the-apple-app-store-if-you-have-deployed-it-there-this-is-used-to-link-to-your-store-page-from-your-expo-project-page-if-your-app-is-public
* - Android: https://docs.expo.io/versions/latest/workflow/configuration#playstoreurlurl-to-your-app-on-the-google-play-store-if-you-have-deployed-it-there-this-is-used-to-link-to-your-store-page-from-your-expo-project-page-if-your-app-is-public
* - web: returns `null`
*/
export declare function storeUrl(): string | null;
/**
* @return This returns a promise that fulfills to `true` if `StoreReview.requestReview()` is capable
* directing the user to some kind of store review flow. If the app config (`app.json`) does not
* contain store URLs and native store review capabilities are not available then the promise
* will fulfill to `false`.
*
* # Example
* ```ts
* if (await StoreReview.hasAction()) {
* // you can call StoreReview.requestReview()
* }
* ```
* A flag to detect if this module can do anything.
*/
export declare function hasAction(): Promise<boolean>;

@@ -5,10 +5,7 @@ import { Platform } from '@unimodules/core';

import StoreReview from './ExpoStoreReview';
// @needsAudit
/**
* Determines if the platform has the capabilities to use `StoreReview.requestReview()`.
* @return
* This returns a promise fulfills with `boolean`, depending on the platform:
* - On iOS, it will resolve to `true` if the device is running iOS 10.3+.
* - On Android, it will resolve to `true` if the device is running Android 5.0+.
* - On Web, it will resolve to `false`.
* Determine if the platform has the capabilities to use `requestedReview`
* - iOS: `true` if iOS 10.3 or greater and the StoreKit framework is linked
* - Android: `true` if Android 5.0 or greater and PlayStore is installed
* - web: Always `false`
*/

@@ -18,8 +15,5 @@ export async function isAvailableAsync() {

}
// @needsAudit
/**
* In ideal circumstances this will open a native modal and allow the user to select a star rating
* that will then be applied to the App Store, without leaving the app. If the device is running
* a version of iOS lower than 10.3, or a version of Android lower than 5.0, this will attempt
* to get the store URL and link the user to it.
* Use the iOS `SKStoreReviewController` or Android `ReviewManager` API
* to prompt a user rating without leaving the app.
*/

@@ -47,8 +41,7 @@ export async function requestReview() {

}
// @needsAudit
/**
* This uses the `Constants` API to get the `Constants.manifest.ios.appStoreUrl` on iOS, or the
* `Constants.manifest.android.playStoreUrl` on Android.
*
* On Web this will return `null`.
* Get your app's store URLs from `app.config.js` or `app.json`:
* - iOS: https://docs.expo.io/versions/latest/workflow/configuration#appstoreurlurl-to-your-app-on-the-apple-app-store-if-you-have-deployed-it-there-this-is-used-to-link-to-your-store-page-from-your-expo-project-page-if-your-app-is-public
* - Android: https://docs.expo.io/versions/latest/workflow/configuration#playstoreurlurl-to-your-app-on-the-google-play-store-if-you-have-deployed-it-there-this-is-used-to-link-to-your-store-page-from-your-expo-project-page-if-your-app-is-public
* - web: returns `null`
*/

@@ -67,15 +60,4 @@ export function storeUrl() {

}
// @needsAudit
/**
* @return This returns a promise that fulfills to `true` if `StoreReview.requestReview()` is capable
* directing the user to some kind of store review flow. If the app config (`app.json`) does not
* contain store URLs and native store review capabilities are not available then the promise
* will fulfill to `false`.
*
* # Example
* ```ts
* if (await StoreReview.hasAction()) {
* // you can call StoreReview.requestReview()
* }
* ```
* A flag to detect if this module can do anything.
*/

@@ -82,0 +64,0 @@ export async function hasAction() {

@@ -11,2 +11,6 @@ # Changelog

## 4.0.2 — 2021-04-13
_This version does not introduce any user-facing changes._
## 4.0.1 — 2021-04-01

@@ -13,0 +17,0 @@

{
"name": "expo-store-review",
"version": "4.0.1",
"version": "4.0.2",
"description": "ExpoStoreReview standalone module",

@@ -35,3 +35,3 @@ "main": "build/StoreReview.js",

},
"gitHead": "58483c5ec15ae7ed7faba45b68993be5117685db"
"gitHead": "9c6693e1e8997dd279d408b0f6e6490897713085"
}

@@ -7,10 +7,7 @@ import { Platform } from '@unimodules/core';

// @needsAudit
/**
* Determines if the platform has the capabilities to use `StoreReview.requestReview()`.
* @return
* This returns a promise fulfills with `boolean`, depending on the platform:
* - On iOS, it will resolve to `true` if the device is running iOS 10.3+.
* - On Android, it will resolve to `true` if the device is running Android 5.0+.
* - On Web, it will resolve to `false`.
* Determine if the platform has the capabilities to use `requestedReview`
* - iOS: `true` if iOS 10.3 or greater and the StoreKit framework is linked
* - Android: `true` if Android 5.0 or greater and PlayStore is installed
* - web: Always `false`
*/

@@ -21,8 +18,5 @@ export async function isAvailableAsync(): Promise<boolean> {

// @needsAudit
/**
* In ideal circumstances this will open a native modal and allow the user to select a star rating
* that will then be applied to the App Store, without leaving the app. If the device is running
* a version of iOS lower than 10.3, or a version of Android lower than 5.0, this will attempt
* to get the store URL and link the user to it.
* Use the iOS `SKStoreReviewController` or Android `ReviewManager` API
* to prompt a user rating without leaving the app.
*/

@@ -51,8 +45,7 @@ export async function requestReview(): Promise<void> {

// @needsAudit
/**
* This uses the `Constants` API to get the `Constants.manifest.ios.appStoreUrl` on iOS, or the
* `Constants.manifest.android.playStoreUrl` on Android.
*
* On Web this will return `null`.
* Get your app's store URLs from `app.config.js` or `app.json`:
* - iOS: https://docs.expo.io/versions/latest/workflow/configuration#appstoreurlurl-to-your-app-on-the-apple-app-store-if-you-have-deployed-it-there-this-is-used-to-link-to-your-store-page-from-your-expo-project-page-if-your-app-is-public
* - Android: https://docs.expo.io/versions/latest/workflow/configuration#playstoreurlurl-to-your-app-on-the-google-play-store-if-you-have-deployed-it-there-this-is-used-to-link-to-your-store-page-from-your-expo-project-page-if-your-app-is-public
* - web: returns `null`
*/

@@ -71,15 +64,4 @@ export function storeUrl(): string | null {

// @needsAudit
/**
* @return This returns a promise that fulfills to `true` if `StoreReview.requestReview()` is capable
* directing the user to some kind of store review flow. If the app config (`app.json`) does not
* contain store URLs and native store review capabilities are not available then the promise
* will fulfill to `false`.
*
* # Example
* ```ts
* if (await StoreReview.hasAction()) {
* // you can call StoreReview.requestReview()
* }
* ```
* A flag to detect if this module can do anything.
*/

@@ -86,0 +68,0 @@ export async function hasAction(): Promise<boolean> {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc