From 1fa8adb70c3acd0e2b473008bf7315d1c5d46a9e Mon Sep 17 00:00:00 2001 From: feruz Date: Mon, 23 Dec 2019 14:15:46 +0200 Subject: [PATCH] rating app --- ios/Podfile.lock | 6 +++++ package.json | 1 + src/screens/rate/index.js | 1 + src/screens/rate/screen/rateScreen.js | 34 +++++++++++++++++++++++++++ yarn.lock | 5 ++++ 5 files changed, 47 insertions(+) create mode 100644 src/screens/rate/index.js create mode 100644 src/screens/rate/screen/rateScreen.js diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 1256cbc42..99cfa2ae4 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -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 diff --git a/package.json b/package.json index c1da5a240..848d54d3e 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/screens/rate/index.js b/src/screens/rate/index.js new file mode 100644 index 000000000..c2ade518e --- /dev/null +++ b/src/screens/rate/index.js @@ -0,0 +1 @@ +export { default } from './screen/rateScreen'; diff --git a/src/screens/rate/screen/rateScreen.js b/src/screens/rate/screen/rateScreen.js new file mode 100644 index 000000000..d102956e8 --- /dev/null +++ b/src/screens/rate/screen/rateScreen.js @@ -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 ( + +