ReactVision / viro

ViroReact: The AR and VR library for React Native πŸ“³πŸ’™πŸ’›πŸ€πŸ’š

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

onTouch event is not working

yauhenicharniauski opened this issue Β· comments

Requirements:

Please go through this checklist before opening a new issue

Environment

Please provide the following information about your environment:

  1. Development OS: Mac
  2. Device OS & Version: iOS 15.7.6
  3. Version: ViroReact 2.41.1, ReactNative 0.73.6
  4. Device(s): iPhone 7

Description

I have <ViroScene /> component. I've added to this component 'onRotate' event and it works fine. But when I want to use onTouch instead, the onTouch event is not working.

<ViroScene onTouch={(a, b) => console.log('touch: ', a, b)}>

I use Viro3DSceneNavigator.

Reproducible Demo

  1. Create a project with Viro
  2. Add Viro3DSceneNavigator, create initial scene with <ViroScene onTouch={(a, b) => console.log('touch: ', a, b)}>
  3. Try to touch your device screen. Nothing will happen.
  4. It would work if we update onTouch to onRotate and touch the screen with 2 fingers and then rotate.

Will this event be implemented in the future for a 3d scene?