Open alwathan opened 1 year ago
@alwathan Did you add android:supportsRtl="true"
to your AndroidManifest? For me this fixed the issue.
@sepperousseau I am using expo
same here, layoutDirection="rtl"
not working in android, even if android:supportsRtl="true"
"expo": "~49.0.13", "react-native": "0.72.5", "react-native-pager-view": "6.2.0",
no solution yet? the swipe direction is inverted on Android
any solution for this ? Am using expo.
swipe direction is inverted on android
I added
transform: [{ scaleX: -1 }]
,
to my PagerView & inner views and it worked well
<PagerView style={[styles.pageViewer, {transform: [{ scaleX: -1 }] }]}
`<View key={1} style={{ justifyContent: 'center', transform: [{ scaleX: -1 }] }}>
`
Environment
"react-native-pager-view": "^6.2.1", "react-native": "0.72.4", "expo": "~49.0.8",
Description
RTL swipe direction not working on Android.
This is my script
Demo