Android Stars Are Not Displaying Correctly
I am working with "react-native-elements" {Rating} on iOs and android. It works great on iOs but on android the star images are coming in as a solid block. See below picture. Any idea why this would be happening? Is it happening to anyone else?
import {Rating} from "react-native-elements";
import CustomCallout from "./customCallout";
<CustomCallout>
<Text style={{fontFamily: Font.Bold}}>
{marker.placeName}
</Text>
<Rating
imageSize={15}
readonly
startingValue={marker.rating}
style={{marginLeft: -35}}
/>
<Text style={{fontFamily: Font.Regular}}>
{marker.placeType}
</Text>
</CustomCallout>
class CustomCallout extends React.Component {
render() {
return (
<View style={[styles.container, this.props.style]}>
<View style={styles.bubble}>
<View style={styles.amount}>{this.props.children}</View>
</View>
<View style={styles.arrowBorder} />
<View style={styles.arrow} />
</View>
);
}
}

I am using the same "react-native-elements" library.it's working fine for ios but in android, stars disappear on selecting, please have look.
<AirbnbRating defaultRating={defaultRating} type='custom' ratingImage={Assets.userType.ratingbg} ratingColor='#FFCB27' ratingBackgroundColor='#c8c7c8' count={count} showRating={false} imageSize={30} starStyle={{ height: 30, width: 32 }} onFinishRating={onratingCompleted} /> am also try with custom type to set a watermark image.
same here
same here
Hi Rooib, you can use the new Library. Link: https://www.npmjs.com/package/react-native-rating maybe it helpful for you
I was able to resolve it by making Changes in file react-native-ratings/src/components/Star.js From tintColor: fill && selectedColor ? selectedColor : undefined, to tintColor: fill && selectedColor ? selectedColor :"#e5e5e5",
I was able to resolve it by making Changes in file react-native-ratings/src/components/Star.js From tintColor: fill && selectedColor ? selectedColor : undefined, to tintColor: fill && selectedColor ? selectedColor :"#e5e5e5",
Thanks, helped me instantly!
i have the same problem, can it be fixed perement?
I am too having the same issue, Isnt it fixed yet in latest versions?
This has been fixed. Please try with the latest version.
I am also having this issue.It's not working!!
Having the same issue with the latest version
Same issue on iOS
just remove halfStarEnabled={true} and it will not break in android
<AirbnbRating
defaultRating={defaultRating}
type='custom'
ratingImage={Assets.userType.ratingbg}
ratingColor='#FFCB27'
ratingBackgroundColor='#c8c7c8'
count={count}
showRating={false}
imageSize={30}
starStyle={{ height: 30, width: 32 }}
onFinishRating={onratingCompleted}
/>
am also try with custom type to set a watermark image.