4umo / react-native-stars

a versatile react native star review component with half star compatibility and custom images, star sizes, star count, star spacing, and value display.
MIT License
91 stars 19 forks source link

StarRating won't change size #35

Open darias08 opened 1 year ago

darias08 commented 1 year ago

Hello,

I am using the custom version for the star rating and it's not letting me change the size even though I have set it to starSize={50} Here's what I have set to:

<StarRating
            default={2.5}         
            count={5}
            half={true}
            starSize={50} 
            fullStar={<Icon name={'star'} style={[styles.myStarStyle]}/>}
            emptyStar={<Icon name={'star-outline'} style={[styles.myStarStyle, styles.myEmptyStarStyle]}/>}
            halfStar={<Icon name={'star-half'} style={[styles.myStarStyle]}/>}
         />

image0

darias08 commented 1 year ago

Actually I realized, it's not recongizing the npm when I am importing it. It's saying that it couldn't find the react-native-stars even though I have installed it with npm i react-native-stars --save