4umo / react-native-stars

a versatile react native star review component with half star compatibility and custom images, star sizes, star count, star spacing, and value display.
MIT License
91 stars 19 forks source link

how make star readonly #18

Closed sunihegde closed 5 years ago

4umo commented 5 years ago

depending on the use case, either

<Stars
...
disabled={true}
>

or

<Stars
...
display={your_fixed_value}
>
sunihegde commented 5 years ago

readonly={true } Is not working for me

On Mon, 11 Mar 2019 8:51 pm Austin Montgomery, notifications@github.com wrote:

depending on the use case, either

<Stars ... disabled={true}

or

<Stars ... display={your_fixed_value}

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Extrct/react-native-stars/issues/18#issuecomment-471584169, or mute the thread https://github.com/notifications/unsubscribe-auth/AuMBGoKgYO5WV319H_NMnkpUapfzJdoWks5vVnRvgaJpZM4bn-Y5 .

4umo commented 5 years ago

right, there's no readonly property observed by this component, have you tried disabled={true}?