-
Notifications
You must be signed in to change notification settings - Fork 660
Not working with 0.56.0 #267
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
Comments
PR 248 may solve this problem, but I have not tested it. |
@pedro I have tested #248 on a fork, simpleweb/react-native-config. I can confirm that I have it working on RN 0.56.0. |
#270 is also resolving the issue and provides pattern used in other RN projects with native code as |
#248 does not work on a new React Native project. I reviewed and recommended some changes. |
@taranda I was running version |
@craigcoles That is a valid point. I will say that not everyone will upgrade to gradle 4.4. React Native 0.56 "ships" with gradle 3. It would be nice if react-native-config worked "out of the box" with React Native 0.56 and not require the user to update their gradle. Especially if there is no compelling reason to use gradle 4 other than the |
A workaround while this issue is not fixed is to override the version in
No change is required for the plugin to work after this. This unfortunately will hide other library buildTools version mismatch. |
@alwex solution is the best as far though pushing all subprojects this way does not seem to be the perfect idea. I assume that this repo is not getting maintained anymore. |
I was able to run version 0.8.1 on react-native version 0.56. version 11.5 of react-native-config was returning an empty object when running on RN version 0.56. |
@drewandre make sure you did link the library. |
I have the same issue regarding the empty object. |
@tizzyapunkt what exactly is your situation? Does the build fail or |
@amed The config object was empty.
|
There is an extra step for android:
check https://github.com/luggit/react-native-config#extra-step-for-android This may leads to the current issue topic, which is an issue building for Android. cc // @tizzyapunkt |
@amed |
@amed No, I actually didn't link the library which was my problem. I thought you meant just run react-native link, but that is not functioning properly on RN 0.56. Running react-native link followed by manually linking libReactNativeConfig.a under Link Binary With Libraries like you suggested did the trick for me. All on react-native-config version 0.8.1. Thank you! |
The text was updated successfully, but these errors were encountered: