Re:Exponent – Build native apps in JS that work across both ...
by jameslk on Monday September 26, 2016 @04:21PM
(#12585211)
This looks very interesting, but I'd like to know that if I ever did need to fall back to native APIs, I could keep the code I've written using Exponent's APIs still (even if that means I couldn't use the convenient build tools anymore). Is this possible?
[ Parent
| on HN ]
Re:Exponent – Build native apps in JS that work across both ...
by brentvatne on Monday September 26, 2016 @04:33PM
(#12585309)
There are a few of ways to do this right now:
- Fork the Exponent client and add your native API.
- Try to get a patch into upstream.
- If it's not urgent, ask us if we plan to implement it and if it seems like a common enough use case we would add it to our roadmap.
- Go into the Exponent source and copy whatever native code you need into a new React Native project.
We're also working on a way to "eject" from Exponent similar to the create-react-app eject command but easier to reverse and to keep receiving updates to Exponent, because it's not an "all-in" kind of eject, you can read more about that here: https://blog.getexponent.com/answered-on-slack-ejecting-from... (caveat: this feature is still in early development)
Re:Exponent – Build native apps in JS that work across both ...
by skanga on Tuesday September 27, 2016 @12:41PM
(#12590918)
Does it support Bluetooth LE communications?
Re:Exponent – Build native apps in JS that work across both ...
by nikki93 on Monday September 26, 2016 @04:28PM
(#12585268)
Yup! Since our client code is open source, you could run a custom fork of our client that includes the native module(s) you want and still use the JavaScript app code you've written with it. If you end up making such a change let us know and through a pull request or such we could try getting it into standard Exponent!