Skip to content

Commit

Permalink
Merge pull request #166 from chungweileong94/star-style
Browse files Browse the repository at this point in the history
Added missing `starStyle` prop type
  • Loading branch information
Monte9 committed Apr 2, 2024
2 parents ccbbe5b + a1f0b80 commit 0a8f16b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -109,6 +109,7 @@ Also refer to the [`example`](https://github.com/Monte9/react-native-ratings/tre
| starContainerStyle | none | object or stylesheet | Custom styles applied to the star container |
| ratingContainerStyle | none | object or stylesheet | Custom styles applied to the rating container |
| starImage | STAR_IMAGE | string | Pass in a custom base image source (optional) |
| starStyle | none | object or stylesheet | Custom styles applied to the star (optional) |

### RatingProps

Expand Down
5 changes: 5 additions & 0 deletions src/TapRating.tsx
Expand Up @@ -102,6 +102,11 @@ export type TapRatingProps = {
* Pass in a custom base image source
*/
starImage?: string;

/**
* Style for star
*/
starStyle?: StyleProp<ViewStyle>;
};

const TapRating: React.FunctionComponent<TapRatingProps> = (props) => {
Expand Down

0 comments on commit 0a8f16b

Please sign in to comment.