I'm using React Native to build the main UI of my app, which is working quite well, however I have an issue where if there is a JS error in Debug mode, I can't hit `Reload` from the React Native error view as its already crashed the app. This is because React is assuming the app has a standard AppDelegate with a window property e.g.
But then of course I can't make a reference to it in my MainWindow class (where I am initialising a UIWindow already) as its not included in the JuceHeader.
I'm not sure how to proceed with this, I wonder if I need to create my own subclass of JUCEApplicationBase?
Thanks
p.s. any plans to give us some nice syntax highlighting on the forum?
I can now reload the app after a JS error without having to restart it in Xcode. Its great having such fast iterations, one of the big selling points of React Native. A bit like Projucer live build for mobile development, but without any rebuilding going on!
It's not something we have a mechanism for.. If you can suggest a clean way to add the functionality you need, then let us know, but it sounds like a tricky thing to implement in a nice clean way!
Solved with the help of @fabian - I didn’t realise its possible to cast the base UIApplicationDelegate class which has the window property. So if you are doing your own MainWindow initialisation for iOS like I am you can do something like this: