Skip to main content
Version: 2.1

Rating

All RatingType types are made available through the named export RatingType:

import { RatingType } from 'react-native-track-player';
NameDescription
HeartRating type indicating "with heart" or "without heart", its value is a boolean.
ThumbsUpDownRating type indicating "thumbs up" or "thumbs down", its value is a boolean.
ThreeStarsRating type indicating 0 to 3 stars, its value is a number of stars.
FourStarsRating type indicating 0 to 4 stars, its value is a number of stars.
FiveStarsRating type indicating 0 to 5 stars, its value is a number of stars.
PercentageRating type indicating percentage, its value is a number.