Git Product home page Git Product logo

Comments (3)

achuvm avatar achuvm commented on May 17, 2024

Hi @mushkin-v,

It actually depends on which platform and if you have vr mode enabled or not.

On iOS Cardboard w/ vrModeEnabled={true} in the ViroSceneNavigator, there is an already provided button in the top left of the screen. If you have vrModeEnabled={false} then yes, you'd have to add your own button that pops off the VR view. Depending on whether or not the rest of your application is written in React or natively in Objective C, you can either add a button in React Native that removes the ViroSceneNavigator from the JSX or, in Objective C, you can add your own button to the VR ViewController and when the user taps on it, you dismiss the ViewController.

On Android Cardboard, this is also the case where if you're in VR mode, there's no programatic way to do it but if you're not in VR mode, then you can simply remove the view.

Let me know if that helps and what platform/configuration you're trying to do this for.

Thanks,

Andy

from viro.

mushkin-v avatar mushkin-v commented on May 17, 2024

Sorry for long response, thanks for your answer!

from viro.

achuvm avatar achuvm commented on May 17, 2024

Closing this issue due to lack of activity.

Feel free to reopen this issue, create another issue or contact us at [email protected].

Thanks!

from viro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.