Live data from Hacker News

Exponent – Build native apps in JS that work across both iOS and Android

getexponent.com

41–50 of 119 posts

Re: Exponent – Build native apps in JS that work across both iOS and Android

#41

I know lots of platforms-of-the-month come through HN, and it's hard to filter the signal from the noise...just wanted to add another voice that Exponent is indeed awesome. Built by one of the sharpest (and most humble) teams in the valley.

Thanks Blake, that means a lot coming from you =)

Re: Exponent – Build native apps in JS that work across both iOS and Android

#42
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?

Re: Exponent – Build native apps in JS that work across both iOS and Android

#43
post #42

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?

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!

Re: Exponent – Build native apps in JS that work across both iOS and Android

#44
post #33

What's the preferred way to test an Exponent based app?

Also if you meant automated testing, here's an Exponent app that runs jasmine to test Exponent SDK API end-to-end: https://github.com/exponentjs/test-suite This is useful for testing network requests, API calls, etc. in your app JS.

Re: Exponent – Build native apps in JS that work across both iOS and Android

#45
post #42

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?

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 iOS and Android

#47

Intriguing. But how does exponent make money out of this?

Hey! I work on Exponent. Basically, we don't make money right now. Our plan is to eventually help developers make money and take some cut of that. We're open source so you'll never be locked in if we start doing anything you don't agree with. We talk about it a little more at https://docs.getexponent.com/versions/latest/introduction/fa...

That's totally cool. You guys seem to do a lot of work for free. Hope you get the money you deserve.

Re: Exponent – Build native apps in JS that work across both iOS and Android

#49
I've been using https://www.decosoftware.com/ and like it a lot, but I really like the documentation on the Exponent website.

Part of the allure of writing React Native apps for me is that knowing React would make me a more valuable developer. I'm curious to see how comfortable I feel saying "I know React" after using these IDEs long-term.

Re: Exponent – Build native apps in JS that work across both iOS and Android

#50
post #48

i'm not too familiar with react native - how much support is there for using languages other than javascript (i.e. a compiled-to-javascript language)?

One of my teammates working on Exponent was experimenting with ClojureScript and got it running, and one of our YC batchmatches wrote their app with ClojureScript and RN. It's still the very early days and I expect compiled-to-JS to get easier to use. Compiled-to-WASM might also be a good option one day.
Post reply on HN