Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created in android #28

Open
Altraman opened this issue Dec 18, 2016 · 3 comments
Open

Created in android #28

Altraman opened this issue Dec 18, 2016 · 3 comments

Comments

@Altraman
Copy link

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);
@Leealen
Copy link

Leealen commented Aug 3, 2018

same problem

@Al10s
Copy link

Al10s commented Oct 21, 2019

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

@mgsantos177
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants