How to use the react-native-config.VR_PLATFORM function in react-native-config

To help you get started, we’ve selected a few react-native-config examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github viromedia / viro / Examples / index.js View on Github external
constructor() {
    super();

    var sharedProps = {
      apiKey:"7EEDCB99-2C3B-4681-AE17-17BC165BF792",
    }
    console.log("Config.FLAVOR - " + Config.VR_PLATFORM);
    this.state = {
      navigatorType : Config.VR_PLATFORM == "OVR_MOBILE" ? VR_NAVIGATOR_TYPE : UNSET,
      sharedProps : sharedProps,
      vrMode : Config.FLAVOR == "ovr" ? true : UNSET,
      worldAlignment : UNSET,
      autofocus : true,
      videoQualityHigh : true,
      initial3DScene : UNSET,
      numberOfTrackedImages: 0,
      initialScene: null,
    }
    this._getSelectionButtons = this._getSelectionButtons.bind(this);
    this._getARNavigator = this._getARNavigator.bind(this);
    this._getVRNavigator = this._getVRNavigator.bind(this);
    this._get3DSceneNavigator = this._get3DSceneNavigator.bind(this);
    this._getButtonPress = this._getButtonPress.bind(this);
github viromedia / viro / Examples / index.js View on Github external
constructor() {
    super();

    var sharedProps = {
      apiKey:"7EEDCB99-2C3B-4681-AE17-17BC165BF792",
    }
    console.log("Config.FLAVOR - " + Config.VR_PLATFORM);
    this.state = {
      navigatorType : Config.VR_PLATFORM == "OVR_MOBILE" ? VR_NAVIGATOR_TYPE : UNSET,
      sharedProps : sharedProps,
      vrMode : Config.FLAVOR == "ovr" ? true : UNSET,
      worldAlignment : UNSET,
    }
    this._getSelectionButtons = this._getSelectionButtons.bind(this);
    this._getARNavigator = this._getARNavigator.bind(this);
    this._getVRNavigator = this._getVRNavigator.bind(this);
    this._getButtonPress = this._getButtonPress.bind(this);
  }
  render() {
github viromedia / viro / Examples / index.js View on Github external
constructor() {
    super();

    var sharedProps = {
      apiKey:"7EEDCB99-2C3B-4681-AE17-17BC165BF792",
    }
    console.log("Config.FLAVOR - " + Config.VR_PLATFORM);
    this.state = {
      navigatorType : Config.VR_PLATFORM == "OVR_MOBILE" ? VR_NAVIGATOR_TYPE : UNSET,
      sharedProps : sharedProps,
      vrMode : Config.FLAVOR == "ovr" ? true : UNSET,
      worldAlignment : UNSET,
    }
    this._getSelectionButtons = this._getSelectionButtons.bind(this);
    this._getARNavigator = this._getARNavigator.bind(this);
    this._getVRNavigator = this._getVRNavigator.bind(this);
    this._getButtonPress = this._getButtonPress.bind(this);
  }
  render() {
github viromedia / viro / Examples / index.js View on Github external
constructor() {
    super();

    var sharedProps = {
      apiKey:"7EEDCB99-2C3B-4681-AE17-17BC165BF792",
    }
    console.log("Config.FLAVOR - " + Config.VR_PLATFORM);
    this.state = {
      navigatorType : Config.VR_PLATFORM == "OVR_MOBILE" ? VR_NAVIGATOR_TYPE : UNSET,
      sharedProps : sharedProps,
      vrMode : Config.FLAVOR == "ovr" ? true : UNSET,
      worldAlignment : UNSET,
      autofocus : true,
      videoQualityHigh : true,
      initial3DScene : UNSET,
      numberOfTrackedImages: 0,
      initialScene: null,
    }
    this._getSelectionButtons = this._getSelectionButtons.bind(this);
    this._getARNavigator = this._getARNavigator.bind(this);
    this._getVRNavigator = this._getVRNavigator.bind(this);
    this._get3DSceneNavigator = this._get3DSceneNavigator.bind(this);
    this._getButtonPress = this._getButtonPress.bind(this);
    this._toggleAutofocus = this._toggleAutofocus.bind(this);
    this._toggleVideoQuality = this._toggleVideoQuality.bind(this);