If a .DS_Store file is created by OS X in the images directory then natal will attempt to
require it like any other image file. This causes an error in the simulator as javascript cannot load
the file. As there isnt any reason why a .DS_Store file should be loaded I've added an automatic exclusion for this file
name in any part of the image path.
Additions that could be made:
We could expose the exclude list as a configuration in the .re-natal file so that people could see what is being excluded and add to it if needed.
If you want to debug on the device you have to replace `localhost`
with your ip in
`node_modules/react-native/Libraries/WebSocket/RCTWebSocketExecutor.m`.
Yes it is not a joke, edit the react-native library directly as per:
[the
docs](https://facebook.github.io/react-native/docs/debugging.html#chrome-developer-tools)
I added this file to where the url is replaced in AppDelegate.m
- added re-natal.support namespace which provides functions to make it possible mounting om root application not on "real" root node but on other component which acts as a root node.
Now it is just static ui which works with figwheel-bridge. Could not implement :jsload-callback tom make figwheel work correctly yet.
State has to be introduced next.
- remove setting up host from use-figwheel command
- introduce use-android-device command for changing android host. use-android-device command has to be executed only when user changes android device type for development
- change figwheel support functions in user.clj to support multiple builds
- add instructions to README of how to run iOS and Android simulators simultaneously
- No need to change host for iOS it is always localhost
- For android simulators, update only the host in figwheel URL instead of overwriting whole file
- env/dev can be removed from .gitignore
- use-figwheel command scans for all files in image dirs (configured in .re-natal) and adds a require() call to each image index.*.js
- removed require-img macros
- core.cljs now uses normal 'js/require' function to load static image.
- 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