-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Layout is messed up with RTL devices #38
Comments
@dyaacov Hi! Thank you for letting us now. Could you be a bit more specific? Is the app crashing at startup? Are some parts of the app unavailable? Is it another kind of issue? |
Hi,
Sorry for the late response.
The app doesn't crash, the carousel doesn't work nor doesn't look good.
See attached screenshots (this is from your demo app in Google Play
archriss)
*carousel_1.png*: this is how it looks when you open the app
*carousel_2. png*: when you click next/previous, all the images disappear
…On Tue, Feb 21, 2017 at 11:01 AM, Benoît Delmaire ***@***.***> wrote:
@dyaacov <https://github.com/dyaacov> Hi! Thank you for letting us now.
Could you be a bit more specific? Is the app crashing at startup? Are some
parts of the app unavailable? Is it another kind of issue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#38 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADO2tAbb4dM-B_2orxL10WGvpTTTWGqVks5reqf9gaJpZM4MEFBS>
.
|
… On Fri, Mar 10, 2017 at 4:30 PM, Benoît Delmaire ***@***.***> wrote:
@dyaacov <https://github.com/dyaacov> Thank you for getting back to me!
It seems your screenshots didn't make it to GitHub ;) Would you mind
hosting them online (on imgur <http://imgur.com/> for example)?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#38 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADO2tHjEHyRg7QsFka-6TG949Lmt3ufPks5rkV6ZgaJpZM4MEFBS>
.
|
@dyaacov Thank you for taking the time to upload these screenshots. Now begins the painful journey of trying to reproduce the bug on our devices ;) |
Thank you.
I tested LG g2 and g3, same results.
On Nexus 5x it works fine.
I hope you can provide a fix soon cause I really want to use this feature
in my new app.
Maybe a wrong calculation of sizes due to different resolutions. Let me
know if you need my assistance. I can test on several different devices.
May the force be with you!
Dekel
…On Mar 13, 2017 10:53, "Benoît Delmaire" ***@***.***> wrote:
@dyaacov <https://github.com/dyaacov> Thank you for taking the time to
upload these screenshots. Now begins the painful journey of trying to
reproduce the bug on our devices ;)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#38 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADO2tCODG5pNXa2sK4b4yq8t9GNQZUixks5rlQP6gaJpZM4MEFBS>
.
|
@dyaacov We've tried the app on a LG G3 and weren't able to reproduce the issue. I fear a buggy React Native's Can you share the Android versions on which you've tried the app, and specify the ones that were buggy? |
Android 5.0, core 3.4.0, software v20n-456-01
Android 4.4.2, core 3.4.0, software d80220a-isr-xx
…On Mar 13, 2017 11:28, "Benoît Delmaire" ***@***.***> wrote:
@dyaacov <https://github.com/dyaacov> We've tried the app on a LG G3 and
weren't able to reproduce the issue. I fear a buggy React Native's
ScrollView implementation on some Android versions :-( That's why we're
currently considering implementing our own PanResponder (see #40
<#40>), but
this requires major developments.
Can you share the Android versions on which you've tried the app, and
specify the ones that were buggy?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#38 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADO2tO8j9KMLD7Tktei9poxnqaszCF3zks5rlQxMgaJpZM4MEFBS>
.
|
@dyaacov Just a quick update: I wasn't able to reproduce the issue, either on a simulator or a real device. Still investigating though ;) |
Have you tried on LG devices?
It doesn't work on 3 different LG devices.
…On Mar 16, 2017 12:53, "Benoît Delmaire" ***@***.***> wrote:
@dyaacov <https://github.com/dyaacov> Just a quick update: I wasn't able
to reproduce the issue, either on a simulator or a real device. Still
investigating though ;)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#38 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADO2tG2q9JoVNsWDgRPvbB4aqwkCTtxJks5rmRS5gaJpZM4MEFBS>
.
|
@dyaacov I've tried on the only one that was around, a LG G3, without seeing any issue. My guess is that there is something wrong with I'll look around for other LG devices. |
You can send me apk with a lot of debug logs and I will reproduce and send
you the logs
…On Mar 16, 2017 16:16, "Benoît Delmaire" ***@***.***> wrote:
@dyaacov <https://github.com/dyaacov> I've tried on the only one that was
around, a LG G3, without seeing any issue. My guess is that there is
something wrong with ScrollView implementation on some specific Android
devices, but I need to be able to reproduce the bug to investigate further.
I'll look around for other LG devices.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#38 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADO2tC1HgZvzFLySEtze7C6EhvRNSZfjks5rmUQfgaJpZM4MEFBS>
.
|
@dyaacov That's an idea, thanks! I'll prepare a debug apk as soon as I can (not before a few days I'm afraid). In the meantime, and if this is not too much trouble, a short video of the issue might help figuring out what's happening. |
@dyaacov Would you mind building the latest version of the example and tell me if you can still reproduce the issue on your devices? I've made a few bug fixes in the latest release and also bumped the RN version of the example to the latest stable one; that might have helped ;) |
Sorry, same issues. when you first open it, the first slide is adjusted to left and when you try to swipe everything disappears. See video: |
@dyaacov Thank you very much for the video! Thanks to it, I've finally understood the root of the issue. This has to do with right-to-left UI. If you change your settings to left-to-right, you'll see the issue vanish. You can see that items are rendered left-to-right (that's the default behavior of RN's |
It is a known issue. ScrollView + RTL = bug. |
@dyaacov @yaronlevi Good news! I've just published a new version of the plugin that adds RTL support and should resolve your issue. As @yaronlevi stated, the issue had to do with React Native's RTL handling. I had to tweak a few things, so make sure to read the notes about this feature. Can you both confirm that this solves the issue for you? |
Hi, :( |
@dyaacov This is strange... Two days ago, I was finally able to reproduce the issue with I'm positive that this works since I've tested the fix on iOS and Android, on both emulators and real devices. Anyway, I'll triple-check tomorrow. In the meantime, can you locally change this line to |
YES!!!
Well done! |
@dyaacov Good to hear! I'm closing the issue, but do not hesitate to keep me posted with the results of your tests ;) |
Found another bug in RTL only. |
@dyaacov I have faced this issue while implementing RTL support, but I got rid of it and haven't been able to reproduce it since then. Are you talking about the first slide to the left or to the right? |
The first active slide, I don't now what you mean by the first to the right
or to the left.
Another small bug, the slides are reversed order in RTL, I fixed locally it
by calling this.state.items.reverese if I'm in RTL
…On Mon, Apr 3, 2017 at 10:43 AM, Benoît Delmaire ***@***.***> wrote:
Reopened #38
<#38>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#38 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADO2tHfOn8-M1M3Ka-TcHdUWtqZlb2N_ks5rsKMKgaJpZM4MEFBS>
.
|
@dyaacov The reversed order is by design. I was assuming that, if you have an array of [1, 2, 3], you would expect slides to be rendered [3, 2, 1] so that they can be read from right to left in the same order as they would in a LTR layout. Was that a mistake? |
In my design, the slides have timestamp so I want to present them order by
creation date, regardless RTL
…On Mon, Apr 3, 2017 at 12:47 PM, Benoît Delmaire ***@***.***> wrote:
@dyaacov <https://github.com/dyaacov> The reversed order is by design. I
was assuming that, if you have an array of [1, 2, 3], you would expect
slides to be rendered [3, 2, 1] so that they can be read from right to left
in the same order as they would in a LTR layout. Was that a mistake?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#38 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADO2tLn9ntYltcHI6tiFfA2Vs7LAtGeWks5rsMAegaJpZM4MEFBS>
.
|
I think you should not interfere in the slides order, each implementer
should order it according to his logic.
On Mon, Apr 3, 2017 at 12:50 PM, dekel yaacov <[email protected]>
wrote:
… In my design, the slides have timestamp so I want to present them order by
creation date, regardless RTL
On Mon, Apr 3, 2017 at 12:47 PM, Benoît Delmaire ***@***.***
> wrote:
> @dyaacov <https://github.com/dyaacov> The reversed order is by design. I
> was assuming that, if you have an array of [1, 2, 3], you would expect
> slides to be rendered [3, 2, 1] so that they can be read from right to left
> in the same order as they would in a LTR layout. Was that a mistake?
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#38 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ADO2tLn9ntYltcHI6tiFfA2Vs7LAtGeWks5rsMAegaJpZM4MEFBS>
> .
>
|
@dyaacov Well, I'm not used to RTL interfaces but I'm trying to foresee what would seem more "natural" to every user of this plugin. My understanding was that everything was reversed between LTR and RTL layouts. You mentioned slides with timestamp. In a LTR layout, I would render the following ('X' marks the first active slide):
Shouldn't it be the following with a RTL layout?
|
Closing as no further feedback was provided. |
Hi @bd-arc
Probably you can take a look on this? lib version: 3.2.3 |
Hi @malashkevich, I'm quite surprised because if you take a look at line 765 of the source code, you'll see that I'm already using such a fix (along with a few others that you can find in this commit)... Would you mind testing with RN 0.48 and letting me know the outcome? |
@malashkevich Also, can you try the provided example and let me know if everything is properly displayed for you? It was working properly on the miscellaneous RTL devices I've tested it on, but I might have overlooked something... |
I am just going to add the it took me a while to figure out this is related to RTL. So for SEO reasons Im gonna add that if you encounter flickering or snap flickering in the carousel then it is related to this issue. The solution by @malashkevich works. |
i using "react-native-snap-carousel": "3.8.0" and the issue still appear, i am using @malashkevich solution to fix it. Maybe i miss something? Any help? |
The example from google play doesn't work on LG G2
The text was updated successfully, but these errors were encountered: