react-native-modal-dropdown icon indicating copy to clipboard operation
react-native-modal-dropdown copied to clipboard

RTL support

Open horam opened this issue 8 years ago • 4 comments

I want to code an application which is Right to Left. But the problem is, it seems that although the dtrop down location is changed but when it is selected, the list is opened from the other side of the screen.

horam avatar Jan 15 '18 05:01 horam

any screenshot?

sohobloo avatar Feb 09 '18 11:02 sohobloo

I want to swap between the text and the arrow. So the text will be at the right side and the dropdown icon will be on the left. How can I do it?

untitled

danmarknm avatar May 05 '18 07:05 danmarknm

@danmarknm you could render your own content as button of dropdown, and use flexDirection 'row-reverse' for RTL like this:

<ModalDropdown>
      <View style={{ flexDirection: RTL ? 'row-reverse' : 'row'}}>
        <Text>...</Text>
        <Icon ... />
       </View>
</ModalDropdown>

I haven't tried the new renderTextButton prop, maybe you could achieve the same using it.

naomipol avatar Aug 08 '18 05:08 naomipol

same issue... The dropdown open at right but should at left: image

pacientk avatar Nov 28 '19 10:11 pacientk