反应未在Android设备上调用的本机ViroVRSceneNavigator.onExitViro方法

时间:2020-04-20 06:25:31

标签: android ios react-native virtual-reality viro-media

我似乎无法在Android设备上使用OnExitViro,但是对于iPhone,调用了onExitViro方法,在iPhone上,它显示左箭头,在Android设备上,它显示“ X”。

我的依赖项如下:

    "expo": "^36.0.2",
    "expo-cli": "^3.16.1",
    "expo-file-system": "^8.1.0",
    "react": "16.8.3",
    "react-native": "0.59.9",
    "react-native-paper": "^3.6.0",
    "react-native-responsive-fontsize": "^0.4.3",
    "react-native-responsive-screen": "^1.4.1",
    "react-native-unimodules": "^0.7.0",
    "react-native-vector-icons": "^6.6.0",
    "react-viro": "2.17.0",
    "rn-bottom-drawer": "^1.4.3"

这是我的onExitViro的代码

  _exitViro (){
    this.setState({
      navigatorType: "UNSET"
    })
  }

而我在ViroVRSceneNavigator上将其称为

onExitViro={this._exitViro.bind(this)}

我在做错什么吗?

0 个答案:

没有答案