You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similarily how it is done in original Natal init command.
Open points:
Need to figure out suitable om-next architecture for crossplatform apps to reuse common code. Only UI part should be separate.
What component wrappers to use for om-next? Reagent has function adapt-react-class, but in om-next examples usually use some wrapper library like natal-shell or ktoa has smth similar. Maybe better not to use any by default and let the developer decide?
This is a good excerse to learn om-next basics, so will it take some time. Any proposals on this topic are wellcome.
The text was updated successfully, but these errors were encountered:
OK, here is the first problem:
To enable "yellow box" warnings on screen in ReactNative app you either:
use AppRegistry.registerComponent then your component will be wrapped to support yellow box
use AppRegistry.registerRunnable and pass a function which uses renderApplication, which will wrap your component and will call React.render (same as it is done in registerComponent)
I was able to use AppRegistry.registerComponent with stateless components (I am following the Quick Start to learn om.next), but it is not possible when you want to attach an om/reconciler. As far as I understand, it is limited by design that reconciler can be only attached to the root element (not to factory, or component class). Therefore you can not use your AppRoot component in any other way, but directly mount it as root with om/add-root!, meaning you can noy use any of the options to make "yellow box" work.
Similarily how it is done in original Natal init command.
Open points:
adapt-react-class
, but in om-next examples usually use some wrapper library like natal-shell or ktoa has smth similar. Maybe better not to use any by default and let the developer decide?This is a good excerse to learn om-next basics, so will it take some time. Any proposals on this topic are wellcome.
The text was updated successfully, but these errors were encountered: