react-native-star-rating icon indicating copy to clipboard operation
react-native-star-rating copied to clipboard

Created in android

Open Altraman opened this issue 7 years ago • 3 comments

But it's wrong! qq20161218-220001

import React, {Component} from 'react';
import {
    AppRegistry,
    StyleSheet,
    Text,
    View,
} from 'react-native';

import StarRating from 'react-native-star-rating';

export default class StarRaingDemo extends Component {
    constructor(props) {
        super(props);
        this.state = {
            starCount: 3.5
        };
    }

    onStarRatingPress(rating) {
        this.setState({
            starCount: rating
        });
    }

    render() {
        return (
            <View>
                <StarRating disabled={false}
                            maxStars={5}
                            rating={this.state.starCount}
                            starColor={'red'}
                            emptyStar={'target-two'}
                            fullStar={'thumbnails'}
                            halfStar={'torso'}
                            iconSet={'Foundation'}
                            selectedStar={(rating) => this.onStarRatingPress(rating)}/>
            </View>
        ); 
    }
}
AppRegistry.registerComponent('BackUp', () => StarRaingDemo);

Altraman avatar Dec 18 '16 14:12 Altraman

same problem

Leealen avatar Aug 03 '18 08:08 Leealen

If you don't see the icons, make sure you followed the react-native-vector-icons installation guide

Al10s avatar Oct 21 '19 06:10 Al10s

i've the same problem, i had followed the react-native-vector-icons installation guide, i'm using icons in others components, but only in the star-rating that icons don't appear

mgsantos177 avatar May 20 '20 18:05 mgsantos177