huejay icon indicating copy to clipboard operation
huejay copied to clipboard

Dynamic require prevents use in React Native

Open simlrh opened this issue 7 years ago • 5 comments

React Native's packager can't bundle apps using dynamic require

simlrh avatar Mar 09 '17 12:03 simlrh

+1. I understand the rationale behind the code factoring associated with dynamic requires, but it makes also browserify unable to bundle Huejay.

HQarroum avatar Sep 08 '17 17:09 HQarroum

I'm still looking into this.

sqmk avatar Feb 12 '18 16:02 sqmk

Any updates on this? :)

zachwinter avatar Mar 07 '19 06:03 zachwinter

Really interested in a solution to this as we're looking to build in some Hue integration into our React Native app.

tombell avatar Nov 20 '20 14:11 tombell

If you need this I'd suggest forking this repo, making the appropriate changes (https://github.com/sqmk/huejay/pull/77/files worked in 2017, make changes as necessary), and pointing to your repo in package.json dependencies.

Don't depend on the above fork as I'm not guaranteeing it'll stay there

simlrh avatar Nov 20 '20 16:11 simlrh