react-native-ratings
react-native-ratings copied to clipboard
{ Rating } not work as expected with RTL (right to left) enabled
the swiping not working correctly. if I swipe my finger to left it should fill the stars and when I swipe it to right it should empty the stars as RTL UI expect. but it behave like LTR UI
I have not seen any issue with RTL. can you provide a expo snack with your code
@EhsanSarshar For direction aware try https://www.npmjs.com/package/react-native-rating-element .. I implemented RTL using direction="row-reverse"
prop in above library.
ok tnx @anshulasethi
he is right, if you use RTL doesn't work property. The start are indeed from RTL but if it's not in readonly mode (let's say we can rate it from 1 to 5) and that i select the first stars (first from RTL) it doesn't give a rate of 1 but a rate of 5. same if i select the last star (the 5th from RTL) it give only 1.
also the text as showRating is broken