ReactVision / viro

ViroReact: The AR and VR library for React Native ๐Ÿ“ณ๐Ÿ’™๐Ÿ’›๐Ÿค๐Ÿ’š
MIT License
1.41k stars 164 forks source link

onTouch event is not working #281

Open yauhenicharniauski opened 8 months ago

yauhenicharniauski commented 8 months ago

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.

linear[bot] commented 8 months ago

XR-191 onTouch event is not working

yauhenicharniauski commented 8 months ago

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