Commit Graph

17 Commits

Author SHA1 Message Date
Artur Girenko b55939219e simplify log function 2016-07-23 15:04:20 +02:00
Artur Girenko 29ede22315 improve showing compilation exception details in YellowBox
Figwheel logs compilation exception in several log messages, so need to buffer them to show in YellowBox.
- buffering starts on "Fighweel: Compile Exception"
- buffering stops on "Error on file"
2016-07-23 14:55:26 +02:00
Artur Girenko f68d03d755 properly use React and ReactNative APIs in figwheel-brdge.js 2016-05-12 16:29:41 +02:00
Artur Girenko ee2eeb6538 log errors to console to trigger a red screen fixes #44
- only the first logged error is shown in red screen, so need to real cause of problem logged in first error message
2016-05-02 21:55:20 +02:00
Artur Girenko 92b0876ce2 bugfix log wrapper function fixes #31 2016-03-22 22:29:59 +01:00
Artur Girenko 5d4d6d6651 debug logging is conditional in figwheel-bridge.js fixes #30 2016-03-21 23:05:45 +01:00
Artur Girenko 7fbfc7c293 do not assume the log message is a string. fixes #29 2016-03-21 20:55:02 +01:00
Artur Girenko cadeb152fc formatting 2016-03-20 12:10:09 +01:00
Artur Girenko dfa5cdece8 #4 remove fakeLocalStorageAndDocument function from figwheel-bridge.js
- using latest available version of lein-figwheel [0.5.0-6]
- figwheel now 'thinks' it is running in node.js environment (thanks @artemyarulin  for hints)
- figwheel :heads-up-display is now disabled. Compilation warnings are still logged and shown in yellow box on screen. (thanks @seantempesta for hint)
2016-03-20 11:25:45 +01:00
Artur Girenko eb969d8709 bugfix in fighweel-bridge.js
Bug description:
figwheel-bridge tracks the js file evaluation and when /env/<platform>/main.js script is evaluated it means that all app code is loaded and can be started. But in case user code contains custom namespace called *.main, then figwheel-bridge interpret the evaluation of this namespace incorrectly and tries to start app too early.
2016-01-27 21:42:07 +01:00
Artur Girenko 337bd49735 enable source maps in Debiug in Chrome mode
- use importScripts function when debugging in chrome
- patch packager to serve *.map files
2016-01-21 00:14:35 +01:00
Artur Girenko a1d875ffbd make compilation errors and other problems appear in simulator screen #8
- do not use AppRegistry.registerRunnable for mounting component to id 1, this prevents warning to be shown in yellow box. Instead use AppRegistry.registerComponent
- shim some document functions so that enabled figwheel heads-up-display works without errors and logs warnings to console (that will be shown on screen in yellow box)
- figwheel splash component now loads real app and renders root component. That has to be done to avoid using AppRegistry.registerRunnable to render real app
2016-01-09 23:35:40 +01:00
Artur Girenko 768f191a63 add support of RN custom components with figwheel (issue #5)
- new CLI command use-component <name> which save name in .re-natal config for later use in use-figwheel command
- use-figwheel now generates a map of cached 'require' calls
- figwheel-bridge.js shims require function to lookup for components by name falls back to original if nothing found
2016-01-04 23:10:13 +01:00
Artur Girenko 577f7c6954 add support for configuring server host to support Android simulators
- Genymotion simulator should use 10.0.3.2 instead of localhost
- Stock android emulator should use 10.0.2.2 instead of localhost
2015-12-06 20:22:53 +01:00
Artur Girenko 927b5de7fe make Figwheel work without the need of Debug in Chrome
- solution by https://github.com/decker405/figwheel-react-native
- remove use-reload command.
- adoptions to figwheel-bridge.js
2015-12-05 23:53:27 +01:00
Artur Girenko 2ec9c9ba83 mention original source in figwheel-breidge.js 2015-11-28 00:46:17 +01:00
Artur Girenko ca577b035f Use lein-figwheel
- Removed REPL based on ambly for now, need to find a good solution for both iOS and Android
- Added figwheel based on great work found in https://github.com/decker405/figwheel-react-native
- Android still does not work with figwheel, but reload works very fast
2015-11-27 23:57:14 +01:00