magic-script-components-react-native icon indicating copy to clipboard operation
magic-script-components-react-native copied to clipboard

ARComponentManager lifecycle issue

Open darek607 opened this issue 5 years ago • 0 comments

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.

darek607 avatar Jul 11 '19 07:07 darek607