react-native: ToolbarAndroid - set RTL not working

I am using a ToolbarAndroid, and I need it in a RTL configuration. So I followed the official docs:

  • Set rtl={true} on the ToolbarAndroid Component
  • Added android:supportsRtl=“true” to the AndroidManifest.xml
  • Added getWindow().getDecorView().setLayoutDirection(View.LAYOUT_DIRECTION_RTL); to the onCreate() method in the main activity

But when the app loads on the device (i am debugging it on nexus 5), the tool bar stays in the regular direction, nothing has changed.

My component:

<ToolbarAndroid
            actions={[{title: 'Settings', show: 'always'}]}
            style={styles.toolbar}
            title='MyToolBar'
            rtl={true}/>

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 1
  • Comments: 16 (6 by maintainers)

Most upvoted comments

good info. thanks, I’ll fix it

It seems like a valid bug and I’m debugging it right now