react-native-in-app-review
Advanced tools
Comparing version 2.1.2 to 2.1.3
{ | ||
"name": "react-native-in-app-review", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "react native in app review, to rate on Play store, App Store, Generally, the in-app review flow (see figure 1 for play store, figure 2 for ios) can be triggered at any time throughout the user journey of your app. During the flow, the user has the ability to rate your app using the 1 to 5 star system and to add an optional comment for play store only. Once submitted, the review is sent to the Play Store or App store and eventually displayed.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -15,3 +15,3 @@ # react-native-in-app-review | ||
[![N|Solid](https://i.ibb.co/4MnN9Gf/rating.png)](https://developer.apple.com/design/human-interface-guidelines/ios/system-capabilities/ratings-and-reviews/#:~:text=If%20the%20user%20hasn't,all%20apps%20they%20have%20installed) | ||
[![N|Solid](https://developer.apple.com/design/human-interface-guidelines/ios/images/AppRating_2x.png)](https://developer.apple.com/design/human-interface-guidelines/ios/system-capabilities/ratings-and-reviews/#:~:text=If%20the%20user%20hasn't,all%20apps%20they%20have%20installed) | ||
@@ -172,1 +172,18 @@ | ||
- Don't use buttons or other controls to request feedback. Since the system limits how often rating prompts occur, attempting to request feedback in response to a control may result in no rating prompt being displayed. | ||
## How to test your code | ||
Because it's a native module, you might need to mock this package to run your tests. | ||
Here is an example for Jest, adapt it to your needs : | ||
```js | ||
// __mocks__/react-native-in-app-review.js | ||
module.exports = { | ||
RequestInAppReview: jest.fn(), | ||
isAvailable: jest.fn(), | ||
// add more methods as needed | ||
}; | ||
``` |
Sorry, the diff of this file is not supported yet
26279
118
188