import { NativeModules } from 'react-native';

const ARKitManager = NativeModules.ARKitManager;

export default () => {
  // when reloading the app, the scene should be cleared.
  // on prod, this usually does not happen, but you can reload the app in develop mode
  // without clearing, this would result in inconsistency
  ARKitManager.isInitialized().then(isInitialized => {
    console.log('was already initialized on startup', isInitialized);
    if (isInitialized) {
      ARKitManager.clearScene();
    }
  });
};

@@ -322,130 +322,113 @@
 y%0A  
-ARKitManager.isInitialized().then(isInitialized =%3E %7B%0A    console.log('was already initialized on startup', isInitialized);
+// do this only when arkit was already initialized%0A  ARKitManager.isInitialized().then(isInitialized =%3E %7B
 %0A   

remove log