Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

[Rating] Customize image #363

Open
JeffGuKang opened this issue Nov 12, 2020 · 0 comments
Open

[Rating] Customize image #363

JeffGuKang opened this issue Nov 12, 2020 · 0 comments
Assignees
Labels
🥺 feature request Request a new feature

Comments

@JeffGuKang
Copy link
Collaborator

JeffGuKang commented Nov 12, 2020

Is your feature request related to a problem? Please describe.

We want to use custom image for Rating instead of the default start image.

Describe the solution you'd like
A clear and concise description of what you want to happen.

The Rating component could show the images from a image property.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

interface StarProps {
  key: number;
  isOn: boolean;
  onPress: () => void;
  disabled?: boolean;
  customItem?: CustomItem;
}

interface CustomItem {
  onComponent: React.ReactElement;
  offComponent: React.ReactElement;
}
<Rating
  total={number('total', 5)}
  value={value}
  onChange={handleChange}
  disabled={disabled}
  customItem={
    onComponent: ...,
    offComponent: ...,
  }
/>

Additional context
Add any other context or screenshots about the feature request here.

@JeffGuKang JeffGuKang self-assigned this Nov 12, 2020
@JeffGuKang JeffGuKang changed the title [Rating] customize image [Rating] Customize image Nov 12, 2020
@hyochan hyochan added 🥺 feature request Request a new feature and removed enhancement labels Feb 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🥺 feature request Request a new feature
Projects
None yet
Development

No branches or pull requests

2 participants