Last active
January 3, 2016 18:53
-
-
Save RSpace/222997bbdbfde821c0ab to your computer and use it in GitHub Desktop.
MeetupVR - Wrapper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Wrapper extends Component { | |
render() { | |
const { vrMode } = this.props | |
if (vrMode) { | |
return ( | |
<div> | |
<Scene> | |
<Camera><Cursor/></Camera> | |
<Members/> | |
<VRModeSwitcher/> | |
</Scene> | |
</div> | |
) | |
} else { | |
return ( | |
<div> | |
<VRModeSwitcher/> | |
<Members/> | |
</div> | |
) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment