React Native Store Rate
Show a popup asking for ratings or feedback. Show real in app (or open store) rating if users gave 5 stars.
In App Rating | Feedback |
---|---|
Installation
-
Install this package
yarn add @hadx/react-native-store-rate
OR
npm install --save @hadx/react-native-store-rate
-
Install react-native-rate
Basic Usage
import StoreRatePopup from '@hadx/react-native-store-rate';
const [visible, setVisible] = useState(true);
<StoreRatePopup
primaryColor="#ff6a69"
rateOptions={{
AppleAppID: '1462815590',
GooglePackageName: 'com.mywebsite.myapp',
}}
onFeedbackSubmit={feedback => setVisible(false)}
visible={visible}
onCancelPress={() => setVisible(false)}
/>