question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RTL is not working

See original GitHub issue

Environment

Android 9, Samsung galaxy s8

Description

The RTL is working well on example project “BasicPagerViewExample.tsx” but it is not working when I install the package from npm.

Reproducible Demo

I created a sample project npx react-native init TestRTL --template react-native-template-typescript

And add the package yarn add react-native-pager-view

And the UI like that

<SafeAreaView style={backgroundStyle}>
  <StatusBar barStyle={isDarkMode ? 'light-content' : 'dark-content'} />
  <PagerView
    style={{width: '100%', height: '100%'}}
    initialPage={0}
    layoutDirection="rtl">
    <View key="1">
      <Text>First page</Text>
    </View>
    <View key="2">
      <Text>Second page</Text>
    </View>
  </PagerView>
</SafeAreaView>

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
kaiyescommented, Aug 14, 2021

I have the same issue. rtl doesn’t work with next branch.

1reaction
FadiAboMsalamcommented, Apr 10, 2022

I am facing same issue on layoutDirection any thoughts on this. ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Html direction attribute is not working - Stack Overflow
In my webpage I set the locale to arabic and want to change the direction of the content display from right to left...
Read more >
RTL is not working correctly with text align #1743 - GitHub
I'm reopening this here since it needs a bit further discussion. The problem is not RTL, but when in LTR and a piece...
Read more >
CSS to force RTL - not working anymore? - Glide Community
Hi, Has anyone noticed a change in the response (or lack of) by Glide apps to the CSS we use for RTL (inside...
Read more >
RTL is not working - WordPress.org
1 year, 8 months ago. Hello, I had the same problem. To solve the problem, Mr. Programmer must be requested. Set the new...
Read more >
RTL text direction not working (using elementor builder) - WPML
Problem : Most of the parts RTL display ok. But one global template, 'Footer', does not respond to RTL direction. I've added custom ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found