Created in android
Altraman opened this issue · 3 comments
Altraman commented
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 commented
same problem
Al10s commented
If you don't see the icons, make sure you followed the react-native-vector-icons installation guide
mgsantos177 commented
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