Skip to content
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

Alert shows up wrong alignment in rtl layout in android #24527

Closed
elirangoshen opened this issue Apr 19, 2019 · 3 comments
Closed

Alert shows up wrong alignment in rtl layout in android #24527

elirangoshen opened this issue Apr 19, 2019 · 3 comments
Labels
API: Alert Bug Platform: Android Android applications. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@elirangoshen
Copy link

elirangoshen commented Apr 19, 2019

🐛 Bug Report

When using Alert.alert on android in when using rtl (Right to Left) language the text alignment is wrong. instead to show it from right to left it shows it from left to right (like in English or other ltr languages)

Screen Shot 2019-04-19 at 1 25 19 PM

To Reproduce

use android emulator, switch to rtl language and use Alert to show content.

Expected Behavior

when using Alert in rtl mode id like to see the text alignment in Alert starting from right to left.

Code Example

I18Manager.forceRtl(true)
Alert.alert("בדיקה", "בדיקה 1 2")

Environment

System:
OS: macOS 10.14.4
CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Memory: 32.98 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 11.14.0 - /usr/local/bin/node
Yarn: 1.15.2 - /usr/local/bin/yarn
npm: 6.9.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
Android SDK:
API Levels: 19, 20, 21, 22, 23, 24, 25, 26, 27, 28
Build Tools: 19.1.0, 20.0.0, 21.1.2, 22.0.1, 23.0.1, 23.0.2, 23.0.3, 24.0.0, 24.0.1, 24.0.2, 24.0.3, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.0, 26.0.1, 26.0.2, 26.0.3, 27.0.0, 27.0.1, 27.0.3, 28.0.3
System Images: android-26 | Google Play Intel x86 Atom, android-27 | Google Play Intel x86 Atom
IDEs:
Android Studio: 3.3 AI-182.5107.16.33.5264788
Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.3 => 16.8.3
react-native: 0.59.2 => 0.59.2
npmGlobalPackages:
react-native-cli: 2.0.1

@react-native-bot
Copy link
Collaborator

Can you run react-native info and edit your issue to include these results under the Environment section?

If you believe this information is irrelevant to the reported issue, you may write `[skip envinfo]` alongside an explanation in your Environment: section.

@elirangoshen
Copy link
Author

Can you run react-native info and edit your issue to include these results under the Environment section?

If you believe this information is irrelevant to the reported issue, you may write [skip envinfo] alongside an explanation in your Environment: section.

it was before as well, but in code mode, so now its plain text

@elirangoshen elirangoshen changed the title Alert shows up wring in rtl layout in android Alert shows up wrong alignment in rtl layout in android Apr 23, 2019
@react-native-bot
Copy link
Collaborator

I am closing this issue because it does not contain the necessary environment info, and there has been no followup in a while.

If you found this thread after encountering the same issue in the latest release, please feel free to create a new issue with up-to-date information by clicking here.

@react-native-bot react-native-bot added the Ran Commands One of our bots successfully processed a command. label May 1, 2019
@facebook facebook locked as resolved and limited conversation to collaborators May 1, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label May 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
API: Alert Bug Platform: Android Android applications. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

2 participants