StarRating is a pure NativeBase component. It’s using FontAwesome
for display star icon.
Usage
import {StarRating} from "@components"; <StarRating starSize={10} maxStars={5} rating={rate} selectedStar={rating => {}} fullStarColor={BaseColor.yellowColor} />
Props
starSize
Type: Number | Default is 40
Size of icon star
maxStars
Type: Number | Default is 5
Total number of icon star will be showed
rating
Type: Number | Default is 0
Value of rate
fullStarColor
Type: String | Default is black color
Value of rate
selectedStar
Type: Function
Function to execute on press star