Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

register figwheelApp to expo root if present and configured #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jgeraerts
Copy link

I've spend some time using figwheel-main inside expo. With some initial success I couldn't get around the fact that the figwheelApp() should be registered with expo itself as it does some extra initialization.

As such I've modified the bridge to take a configuration option and register it with expo if requested.

My main.js now looks like:

  Expo.KeepAwake.activate();
  //let ip = '10.32.128.182';
  let ip = '172.16.1.133';
  console.log("Firing up figwheel...");
  var figBridge = require("react-native-figwheel-bridge");
  figBridge.shimRequire(cljsExports);
  figBridge.start({appName:   "main",
                   expo:      true,
                   optionsUrl: `http://${ip}:9500/cljs-out/mobiledev/cljsc_opts.json`,
                   "closure-defines": {
                     "figwheel.repl.connect_url": `ws://${ip}:9500/figwheel-connect?fwbuild=mobiledev`
  },});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant