Skip to content

Android - TypeError null is not an object... #26

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

Closed
cristianoccazinsp opened this issue Aug 29, 2020 · 3 comments
Closed

Android - TypeError null is not an object... #26

cristianoccazinsp opened this issue Aug 29, 2020 · 3 comments

Comments

@cristianoccazinsp
Copy link
Contributor

cristianoccazinsp commented Aug 29, 2020

Hello,

When reading variables on Android I'm getting TypeError: null is not an object (evaluating '_reactNativeConfigReader.default.somevariable')

@cristianoccazinsp
Copy link
Contributor Author

Update: Was using a different applicationId for debug (multiple flavors), so I had to add:

resValue "string", "rn_config_reader_custom_package", "my.package.app" (without the custom id)

@abdulghanitech
Copy link

Facing the same issue!

@LeunensMichiel
Copy link

LeunensMichiel commented Dec 24, 2020

Update: Was using a different applicationId for debug (multiple flavors), so I had to add:

resValue "string", "rn_config_reader_custom_package", "my.package.app" (without the custom id)

Yes! After a few hours of searching I found your solution. We had different flavors for whitelabel apps. Your solution was applicable to my use case as well, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants