import React from 'react'; import { StyleSheet, Text, View, Platform, ScrollView } from 'react-native'; import { Rating, AirbnbRating, RatingProps } from 'react-native-ratings'; import { Header } from '../components/header'; const WATER_IMAGE = require('../images/water.png'); type RatingsComponentProps = {}; const Ratings: React.FunctionComponent = () => { const ratingCompleted = (rating: number) => { console.log('Rating is: ' + rating); }; const ratingProps = {}; return (
Airbnb-style Tap Ratings Whatsapp-style Swipe Ratings ); }; /* Ratings.navigationOptions = { title: 'Ratings Component', header: null, }; */ const styles = StyleSheet.create({ container: { flex: 1, }, headingContainer: { paddingTop: 50, }, titleText: { fontSize: 25, fontWeight: 'bold', textAlign: 'center', paddingVertical: 5, fontFamily: Platform.OS === 'ios' ? 'Menlo-Bold' : '', color: '#27ae60', }, subtitleText: { fontSize: 18, fontWeight: '400', textAlign: 'center', fontFamily: Platform.OS === 'ios' ? 'Trebuchet MS' : '', color: '#34495e', }, viewContainer: { flex: 1, }, rating: { paddingVertical: 10, }, }); export default Ratings;