Skip to main content

StarRatingView

Renders the star rating if the ad is for an app on Google Playstore or AppStore.

import { StarRatingView } from "react-native-admob-native-ads";

<StarRatingView />;

props​

style:ViewStyle​

Style the outer View Component.

size​

Size of the star icon.

TypeRequiredPlatform
numbernoAll

default:15

iconSet​

Icon family of the icons you are using.

TypeRequiredPlatform
IconSetnoAll

default: "MaterialCommunityIcons"

IconSet: "Entypo" | "EvilIcons" | "Feather" | "Fontisto" | "FontAwesome" | "Foundation" | "Ionicons" | "MaterialIcons" | "MaterialCommunityIcons" | "Octicons" | "Zocial" | "SimpleLineIcons"

fullIcon​

Icon to use for full star rating.

TypeRequiredPlatform
stringnoAll

default: "star-outline"

fullIconColor​

Color of fullIcon

TypeRequiredPlatform
stringnoAll

halfIcon​

Icon to use for half star rating.

TypeRequiredPlatform
stringnoAll

default: "star-half"

halfIconColor​

Color of halfIcon

TypeRequiredPlatform
stringnoAll

emptyIcon​

Icon to use for empty star.

TypeRequiredPlatform
stringnoAll

default: "star-outline"

emptyIconColor​

Color of emptyIcon

TypeRequiredPlatform
stringnoAll