saleel/react-native-super-grid

Ability to customize rowStyle

george-moussa opened this issue · 3 comments

I need to reverse rows without using 'rtl', i.e. if the items list has 1, 2, 3, 4. I want '1' to be on the right side.

This can be achieved by setting flexDirection to 'row-reverse' on rowStyle. But currently rowStyle is not exposed. Is there another way to do that?

Option for additional row styles is not exposed currently. You can add a new prop and place it here. I would be happy to merge a PR on this.

Option for additional row styles is not exposed currently. You can add a new prop and place it here. I would be happy to merge a PR on this.

Hi @saleel, I made a PR at #151. Could you please check it.

PR merged. @george-moussa Use the new additionalRowStyle prop in version 4.1.0