Discussions

Ask a Question

getting blank screen for IOS

Invalid returned hit test result for view in hierarchy: The returned hit test result is invalid and may cause issues as it is not in a window hierarchy: self: \<UIWindow: 0x108c29370>; hit-tested subview: \<UITransitionView: 0x108b1cbe0>; invalid returned view: \<VRTVRSceneNavigator: 0x108cd7b80>

Execution failed for JetifyTransform

when I run react-native run-android I have this error > Execution failed for task ':app:checkDebugAarMetadata'. > > Could not resolve all files for configuration ':app:debugRuntimeClasspath'. > Failed to transform viro_renderer-release.aar (project :viro_renderer) to match attributes {artifactType=android-aar-metadata}. > Execution failed for JetifyTransform: /home/User/Documents/Mobile/node_modules/@viro-community/react-viro/android/viro_renderer/viro_renderer-release.aar. > Failed to transform '/home/User/Documents/Mobile/node_modules/@viro-community/react-viro/android/viro_renderer/viro_renderer-release.aar' using Jetifier. Reason: IllegalArgumentException, message: Unsupported class file major version 61. (Run with --stacktrace for more details.)

how to go to from one scene to another scene

if I have ViroVrSceneNavigator and into that I have one intialscene but i want to add another scene and I can't go to that scene, so how to do that

How to create a measuring app using viro?

I wanna create a basic ruler app to measure the distance between two point

ViroVideo Viro360Video not working app crashes

App crashes with no error when using ViroVideo or Viro360Video. No solution found to handle it

placing image in AR based on geolocation

Hello, Is there a way to place an image in an specific location using coordinates?

Cannot using assets in viro starter-kit project

Encountering an issue, whenever I attempt to utilize assets in the Viro project's starter kit, leads to the application crashing. This occurs while running the app on my Android device. Is there a solution to resolve this problem?

Error while initializing the ViroARScene

ERROR TypeError: Cannot read property 'setJSMaterials' of null, js engine: hermes ERROR Invariant Violation: "main" has not been registered. This can happen if: - Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project. - A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called., js engine: hermes

Unble to detect vertical ARPlane

I have tried below code, it is working fine for Horizontal, but not working for Vertical Plane: ``` <ViroARScene onTrackingUpdated={onInitialized} anchorDetectionTypes={['PlanesHorizontal', 'PlanesVertical']}> <ViroAmbientLight color={"#aaaaaa"} /> <ViroARPlaneSelector minHeight={0.1} minWidth={0.1} alignment="Vertical" onPlaneSelected={this._onPlaneSelected}> <ViroNode position={[0, -.5, 0]} dragType="FixedToWorld" onDrag={() => { }} > {/* Spotlight to cast light on the object and a shadow on the surface, see the Viro documentation for more info on lights & shadows */} <ViroSpotLight innerAngle={5} outerAngle={45} direction={[0, -1, -.2]} position={[0, 3, 0]} color="#ffffff" castsShadow={true} influenceBitMask={2} shadowMapSize={2048} shadowNearZ={2} shadowFarZ={5} shadowOpacity={.7} /> <Viro3DObject source={require('./emoji_smile.vrx')} position={[0, .1, 0]} scale={[.2, .2, .2]} type="VRX" lightReceivingBitMask={3} shadowCastingBitMask={2} transformBehaviors={['billboardY']} resources={[require('./emoji_smile_diffuse.png'), require('./emoji_smile_specular.png'), require('./emoji_smile_normal.png')]} /> <ViroQuad rotation={[-90, 0, 0]} width={.5} height={.5} arShadowReceiver={true} lightReceivingBitMask={2} /> </ViroNode> </ViroARPlaneSelector> </ViroARScene> ``` Can anyone provide solution for this?

onExit viro

onExitViro not working and app crash when press icon on video