node-geo-tz icon indicating copy to clipboard operation
node-geo-tz copied to clipboard

Compatibility with React Native

Open JoBerkner opened this issue 5 years ago • 2 comments

I was about to use node-geo-tz in my React Native project. However, it seems it is not optimized for React Native. For instance, I am getting the following error when trying to load it into my project:

The package at "node_modules\geo-tz\lib\find.js" attempted to import the Node standard library module "fs". It failed because React Native does not include the Node standard library.

As mentioned here, this particular error can be resolved, but I am not sure if other issues may arise after that. Is there a plan to support React Native as well?

JoBerkner avatar Feb 10 '20 06:02 JoBerkner

There currently aren't plans to support React Native, but I'm happy to review and merge PRs that would enable React Native support.

evansiroky avatar Feb 10 '20 06:02 evansiroky

FYI: We have a similar problem trying to use @vercel/ncc for deploying this in our serverless application.

simlu avatar Aug 23 '22 23:08 simlu