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
react-native link does not work correctly #43
Comments
+1 Same problem here |
I think, I need to add that I use Android 6.0 |
I use |
@denvers For me it returns "en", while phone is in "ru" |
FIXED! Just don't use automatic setup via "link". Check your MainApplication.java for import of library and it's initializaition |
@inferusvv So you mean that the |
@leventebalogh yes, it doesn't work |
@inferusvv weird, which version on rn? |
This should be re-opened, it's still an issue and @inferusvv's solution is the correct one. Maybe the recipe for |
I'm getting an empty locale too on iOS. Update:Digging deeper I modified line 6 of index.js and added |
Hey there, can you provide some more info on the version of RN you're using? |
Im using RN 0.40, maybe it didn't link correctly? Is there a way to unlink and link again?
…On Jan 26, 2017, 6:27 AM -0300, Matteo Mazzarolo ***@***.***>, wrote:
Hey there, can you provide some more info on the version of RN you're using?
I tried it on a bunch of different flavours and it worked correctly with react-native link.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub (#43 (comment)), or mute the thread (https://github.com/notifications/unsubscribe-auth/AA-g9lOibZxK9WhzeUctgjfClQw1XN61ks5rWGcOgaJpZM4Ka-ak).
|
Are you on |
We encountered the same result as @wachunei, where we had to manually added lib for iOS. RN 0.42.0rc, react-native-i18n 1.0.0. |
@wachunei how do we add and link the library manuallly on iOS? I opened up the xcode project workspace and go to see the project nagviator. I saw |
@jjhesk open ios/*.xcodproj project, then click on your project in the Project Navigator sidebar, click on Build Phases and expand Link Binary With Libraries section, |
Hey all, I've been a bit busy lately. |
I'm kinda lost here, how do packages tell |
Same for me, I created some native libraries in the past (like this one) but Btw thank you @wachunei for all the support :) |
Just to state that I also had to manually add to the build phases (library was correctly added) testing on ios10 simulator with current i18n lib (^1.0.0) |
Ok, I have solved with a workaround (see this open issue by me): #53 You can add this (tested on iOS emulator) to solve the locale undefined or empty: |
Hey guys, I'm setting up a new project with this library and bug is still happening, just had to drag and drop I think this is a non-minor bug and should me mentioned in I have not found a way to specify @mmazzarolo you're welcome, I'm glad to help. |
@wachunei I added a warning in the |
Can you give a try on the v2.0.0? It should be fixed now 😃 |
@zoontek Some hours ago upgraded library. All fine 👍 |
On iOS all fine. If device lang is ru then I see this locale. On android it is empty string. I've tested it on virtual device and real device.
See next code:
The text was updated successfully, but these errors were encountered: