Skip to content

Instantly share code, notes, and snippets.

@Salem-Abderaouf
Created December 23, 2021 14:35
Show Gist options
  • Save Salem-Abderaouf/b71d3b60e34e55cceb91a9a05791ac56 to your computer and use it in GitHub Desktop.
Save Salem-Abderaouf/b71d3b60e34e55cceb91a9a05791ac56 to your computer and use it in GitHub Desktop.
Create AR app with viro
<ViroPortalScene passable={true}>
<ViroPortal
position={[0,0,-1]}
scale={[0.1,0.1,0.1]}
>
{
// ViroPortal to Create window or door
}
<Viro3DObject
source={your_source}
type="VRX"
/>
</ViroPortal>
{
// Viro360Image to create indoor scene
}
<Viro360Image
source={your_source}
/>
</ViroPortalScene>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment