magic-script-components-react-native
magic-script-components-react-native copied to clipboard
ARComponentManager lifecycle issue
After exiting application with back button and opening it again, the node's creation methods are not invoked again (ARComponentManager
instance survives). However the ARView is recreated correctly (Activity and AR Fragment also are rebuilt as expected). I think that the custom tags' parser should recreate the whole scene in such case.
Update:
I've also noticed that nodes hierarchy is created even if the ArView
is not currently rendered in React Native. Although it's working without major issues we probably should address it if we want to allow creating normal apps containing not only the AR stuff. This would probably require re-implementing the platform-factory.js
and other React Native code responsible for rendering the nodes.