Closed lelandrichardson closed 7 years ago
Thanks for working on this! I'm excited to see the progress.
As someone who hasn't done any iOS or Android development, what are the steps necessary to try this out? You don't have to be specific, just list e.g "install xcode", "pay for developer's license", "read up on objective-c" etc. :)
Closing in favor of #185
to: @lencioni @trotzig
This PR is a work in progress, and so far only works for ios (but is almost ready for android). It's best viewed by commit, as it includes a lot of RN template code in the first 2 commits.
Ultimately, I think it makes sense for us to implement this as a plugin system or something, so this PR will likely never get merged, but I thought it would be a good way for us to start the discussion.
I haven't made much of an attempt to share code, though I did refactor some methods into modules so they could be shared across implementations.
How it works:
running
happo run-ios
does the following things:localhost:8081/happo.bundle
which is assuming that the consumer of happo has the RN packager turned on (to default port of 8081) with ahappo.js
entry file at the root.happo.js
file needs to at some point require thehappo/native
js module, which will register itself with the happo server, and the happo app.import StoryManager from 'happo/native';