viro icon indicating copy to clipboard operation
viro copied to clipboard

onPinch not called when the ViroARSceneNavigator unmount and mount during state change

Open vincent0225 opened this issue 3 years ago • 1 comments

this.state = {
      displayAR: true,
}
{this.state.displayAR? (
            <ViroARSceneNavigator style={localStyles.arView} 
            initialScene={{scene: InitialScene}}  
            ref={this._setARNavigatorRef} 
            viroAppProps={this.state.viroAppProps}/>
          ):null}

3d object onPinch callback is not called after I change displayAR from true to false and true again. It works well if I didn't unmount the ViroARSceneNavigator

vincent0225 avatar Aug 04 '21 09:08 vincent0225

Can you help by providing more example code? Specifically, InitialScene

robertjcolley avatar Dec 18 '21 19:12 robertjcolley