rating app

This commit is contained in:
feruz 2019-12-23 14:15:46 +02:00
parent a588fb1171
commit 1fa8adb70c
5 changed files with 47 additions and 0 deletions

View File

@ -296,6 +296,8 @@ PODS:
- React-Core
- React-RCTImage
- RSKImageCropper
- RNRate (1.1.10):
- React
- RNReanimated (1.4.0):
- React
- RNSVG (9.13.6):
@ -357,6 +359,7 @@ DEPENDENCIES:
- RNGestureHandler (from `../node_modules/react-native-gesture-handler`)
- RNIap (from `../node_modules/react-native-iap`)
- RNImageCropPicker (from `../node_modules/react-native-image-crop-picker`)
- RNRate (from `../node_modules/react-native-rate`)
- RNReanimated (from `../node_modules/react-native-reanimated`)
- RNSVG (from `../node_modules/react-native-svg`)
- RNVectorIcons (from `../node_modules/react-native-vector-icons`)
@ -461,6 +464,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native-iap"
RNImageCropPicker:
:path: "../node_modules/react-native-image-crop-picker"
RNRate:
:path: "../node_modules/react-native-rate"
RNReanimated:
:path: "../node_modules/react-native-reanimated"
RNSVG:
@ -520,6 +525,7 @@ SPEC CHECKSUMS:
RNGestureHandler: 946a7691e41df61e2c4b1884deab41a4cdc3afff
RNIap: b4c77c8bc4501203f4b743126a05da23f10f40b4
RNImageCropPicker: e1d8c3381e5b05a1bdcd13ea57a4f1c020a09cef
RNRate: 832f7e4da1b043bda1a138e20afdb75c42a530e9
RNReanimated: b2ab0b693dddd2339bd2f300e770f6302d2e960c
RNSVG: 8ba35cbeb385a52fd960fd28db9d7d18b4c2974f
RNVectorIcons: 0bb4def82230be1333ddaeee9fcba45f0b288ed4

View File

@ -67,6 +67,7 @@
"react-native-modal-dropdown": "^0.7.0",
"react-native-modal-popover": "0.0.12",
"react-native-navigation-bar-color": "^0.1.0",
"react-native-rate": "^1.1.10",
"react-native-reanimated": "^1.3.0",
"react-native-scrollable-tab-view": "esteemapp/react-native-scrollable-tab-view",
"react-native-snap-carousel": "^3.8.0",

View File

@ -0,0 +1 @@
export { default } from './screen/rateScreen';

View File

@ -0,0 +1,34 @@
import React, { useState } from 'react';
import { View, Button } from 'react-native';
import Rate, { AndroidMarket } from 'react-native-rate';
const rateScreen = () => {
const [rated, setRated] = useState(false);
return (
<View>
<Button
title="Rate App"
onPress={() => {
const options = {
AppleAppID: '1451896376',
GooglePackageName: 'app.esteem.mobile.android',
AmazonPackageName: 'app.esteem.mobile.android',
OtherAndroidURL: 'https://esteem.app',
preferredAndroidMarket: AndroidMarket.Google,
preferInApp: false,
openAppStoreIfInAppFails: true,
fallbackPlatformURL: 'https://esteem.app',
};
Rate.rate(options, success => {
if (success) {
setRated(true);
}
});
}}
/>
</View>
);
};
export default rateScreen;

View File

@ -7670,6 +7670,11 @@ react-native-navigation-bar-color@^0.1.0:
resolved "https://registry.yarnpkg.com/react-native-navigation-bar-color/-/react-native-navigation-bar-color-0.1.0.tgz#358be3eb8630dbaf5993ec9cf07b279590984f2e"
integrity sha512-Hymvfg40MH4vYgXZ5QgCk9i6BqcaD9inFiBGSj3Gobk0bq7O2G/uccs0+Dmlpe12RfC+R+XX6yvW7NTwOppQrQ==
react-native-rate@^1.1.10:
version "1.1.10"
resolved "https://registry.yarnpkg.com/react-native-rate/-/react-native-rate-1.1.10.tgz#278098fad536fba71fdedb6aab71278aa0946ced"
integrity sha512-07L5923RpL+AdnsZCQSkiMbRi/7N/OJtZ6AWAl5bZyhncDD7L1ap94H3jtV7uFW5WGBNxMnGiC4fPLzn426mMw==
react-native-reanimated@^1.3.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/react-native-reanimated/-/react-native-reanimated-1.4.0.tgz#7f1acbf9be08492d834f512700570978052be2f9"