React-native-paper: Proper RTL support

Created on 16 May 2018  路  6Comments  路  Source: callstack/react-native-paper

help wanted high priority

Most helpful comment

TODO

  • [ ] BottomNavigation
  • [x] Button
  • [ ] Caption **
  • [ ] Card
  • [ ] CardActions
  • [x] CardContent
  • [x] CardCover
  • [x] Checkbox
  • [x] Chip
  • [ ] Dialog
  • [x] DialogActions
  • [x] DialogContent
  • [x] DialogScrollArea
  • [ ] DialogTitle **
  • [x] Divider
  • [x] DrawerItem
  • [ ] DrawerSection **
  • [x] FAB
  • [x] FABGroup
  • [ ] Headline **
  • [ ] HelperText **
  • [ ] ListAccordion **
  • [ ] ListItem **
  • [ ] ListSection **
  • [x] Modal
  • [x] Paper
  • [ ] Paragraph **
  • [x] ProgressBar **
  • [x] RadioButton
  • [x] RadioButtonGroup
  • [ ] Searchbar **
  • [ ] Snackbar **
  • [ ] Subheading **
  • [x] Switch **
  • [ ] Text **
  • [ ] TextInput **
  • [ ] Title **
  • [ ] Toolbar
  • [ ] ToolbarAction *
  • [ ] ToolbarBackAction *
  • [ ] ToolbarContent **
  • [x] TouchableRipple

** TextAlign issue.

* All icons to be filliped.

** Working when "Force RTL layout direction" option is enabled from developer options not working with I18nManager.forceRTL(true);.

Tested on Android 8.0 !

All 6 comments

@satya164 Is there any estimated date for V2.0? RTL support is critical to me, but otherwise it seems this library ticks all the boxes.

@colmbrady we don't have an estimate. PRs are welcome on this, or even issues which identify the components which are broken :)

TODO

  • [ ] BottomNavigation
  • [x] Button
  • [ ] Caption **
  • [ ] Card
  • [ ] CardActions
  • [x] CardContent
  • [x] CardCover
  • [x] Checkbox
  • [x] Chip
  • [ ] Dialog
  • [x] DialogActions
  • [x] DialogContent
  • [x] DialogScrollArea
  • [ ] DialogTitle **
  • [x] Divider
  • [x] DrawerItem
  • [ ] DrawerSection **
  • [x] FAB
  • [x] FABGroup
  • [ ] Headline **
  • [ ] HelperText **
  • [ ] ListAccordion **
  • [ ] ListItem **
  • [ ] ListSection **
  • [x] Modal
  • [x] Paper
  • [ ] Paragraph **
  • [x] ProgressBar **
  • [x] RadioButton
  • [x] RadioButtonGroup
  • [ ] Searchbar **
  • [ ] Snackbar **
  • [ ] Subheading **
  • [x] Switch **
  • [ ] Text **
  • [ ] TextInput **
  • [ ] Title **
  • [ ] Toolbar
  • [ ] ToolbarAction *
  • [ ] ToolbarBackAction *
  • [ ] ToolbarContent **
  • [x] TouchableRipple

** TextAlign issue.

* All icons to be filliped.

** Working when "Force RTL layout direction" option is enabled from developer options not working with I18nManager.forceRTL(true);.

Tested on Android 8.0 !

@iyadthayyil i have a wrong position of label when i use the RTL mode please how can i fix it ?
error
this is my code
mode='outlined'
label=' 乇賯賲 亘胤丕賯丞 丕賱鬲毓乇賷賮 丕賱賵胤賳賷丞'
numberOfLines={1}
style={this.getStyle().TextInp}
theme={{ colors: {placeholder: 'white', background:'#003489',text: 'white',primary: 'white'}}}

        />

Checkbox icon is flipped in RTL (#1675). Will there be a fix anytime soon?

Screenshot 2020-05-13 at 10 28 25 AM
@avirankatzsofi
Chip icon={{source: 'camera', direction: 'rtl'}}
do chip able to apply same logic?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zxccvvv picture zxccvvv  路  4Comments

satya164 picture satya164  路  4Comments

sritharanpalani picture sritharanpalani  路  4Comments

makhataibar picture makhataibar  路  4Comments

knobandre picture knobandre  路  4Comments