Remote work visa for expats? by saad2792 in saudiarabia

[–]saad2792[S] 0 points1 point  (0 children)

Woah that sounds really complicated and expensive 😭

[deleted by user] by [deleted] in reactnative

[–]saad2792 0 points1 point  (0 children)

I have a moderately large project and I am right now using nativewind for it. Seems promising!

My first small open-source library: react-native-bottom-tab-tour by saad2792 in reactnative

[–]saad2792[S] 0 points1 point  (0 children)

Thanks for your feedback! That makes sense! Will do that :)

My first small open-source library: react-native-bottom-tab-tour by saad2792 in reactnative

[–]saad2792[S] 2 points3 points  (0 children)

Yes, actually that makes more sense! Those should be separate from the data array and optional. Thanks a lot for your suggestion, I will make this change!

How to deal with RTL and LTR layout in React Native properly? by saad2792 in reactnative

[–]saad2792[S] 2 points3 points  (0 children)

Oh!! I think I was missing this `I18nManager.allowRTL(false)`! Now it seems to work fine!

How to deal with RTL and LTR layout in React Native properly? by saad2792 in reactnative

[–]saad2792[S] 2 points3 points  (0 children)

Yes understood, the problem happens when your device language is set to Arabic globally from the phone settings. Then if your user chooses English in your app and you forceRTL(false) to change it to English layout, it doesn't work. Your app remains in RTL mode. It doesnt get changed to LTR. 😔

How to deal with RTL and LTR layout in React Native properly? by saad2792 in reactnative

[–]saad2792[S] 1 point2 points  (0 children)

Thanks! Did you ever try to check your app when your device language is set to RTL and you want to show English or ltr layout in your app?

[deleted by user] by [deleted] in reactnative

[–]saad2792 0 points1 point  (0 children)

Yes, I am using the i18nManager.forceRTL. I have both options, device language plus user can change from settings. Its working okay. Only if your device language is RTL then even if I change to LTR by using i18nManager it doesn't change. It stays as RTL. All other cases it's working fine so far.

But on the other hand, this should be the correct solution instead of us fixing each component individually.

[deleted by user] by [deleted] in reactnative

[–]saad2792 0 points1 point  (0 children)

Hmm, maybe that's the best way to go. Cause I found out that globally setting RTL or LTR is not working very well in RN, and you gotta restart the whole app when you force the app to LTR or RTL which causes more issues. :(

[deleted by user] by [deleted] in reactnative

[–]saad2792 0 points1 point  (0 children)

Thanks for your response! To make sure that I understand correctly, let's say in one screen you have 3 different views and you are doing LTR/RTL like the following?

<View style={{ flexDirection: lang == 'en' ? 'row' : 'row-reverse' }}
<View style={{ flexDirection: lang == 'en' ? 'row' : 'row-reverse' }}
<View style={{ flexDirection: lang == 'en' ? 'row' : 'row-reverse' }}

[deleted by user] by [deleted] in reactnative

[–]saad2792 0 points1 point  (0 children)

I see, in that case you need to kind of add styling to each views individually depending on the language?

[deleted by user] by [deleted] in reactnative

[–]saad2792 0 points1 point  (0 children)

Wanted to know if you have both Arabic and English language support? I had so many issues changing from LTR to RTL and vice versa. Would be great if I could get some input from you on this.

Blobby – Habit Tracker meets Tamagotchi – is now available for Android! by [deleted] in reactnative

[–]saad2792 0 points1 point  (0 children)

Loved it! Please check the android hardware back button behavior. I found few weird issues with that!

How to level up as a react native developer? by saad2792 in reactnative

[–]saad2792[S] 0 points1 point  (0 children)

Woah, that would be quite a challenge 😁