Oliver Edis

Six days, four releases: how ViroReact's web AR got reliable

A ViroReact AR scene, running in your browser. On a phone it uses the camera, so you can place the shapes in your room.

Go on, grab one of those spheres and throw it.

What you are looking at is a ViroReact AR scene running in your browser. No app, no camera permission, no "please open this on your phone". Drag to look around, pinch to scale, throw things at each other and watch them react.

Ten days ago that demo could not exist. The camera it runs on did not ship until 15 November. The physics that makes the spheres bounce only worked inside Studio. The pinch landed on the 18th. The animated flash when they collide landed on the 21st.

Four releases. Six days. This is the story of that week.

The week, in one breath

  • Sat 15 Nov, 3.2.0: a virtual camera for browsers, physics, drag and throw, scene navigation. Also React Native 0.88 and Expo SDK 58, because why not do that in the same week.
  • Mon 17 Nov, 3.2.1: the native release. Content that stays put, cloud anchors that upload on bad Wi-Fi, no more tracking flicker on mid-range Android.
  • Tue 18 Nov, 3.2.2: gestures, lighting, text styling, and the two fixes that make mobile browsers stop being scary.
  • Fri 21 Nov, 3.2.3: the parity sweep. About forty gaps between web and native, closed.

If you want every line, the changelog has them. This post is about why.

Why we went at web so hard

ViroReact's whole pitch is that you write a scene once and we run it everywhere: iOS, Android, Quest, Vision Pro, and since 3.0, the browser. The web runtime has been solid for the core since it shipped. People are building on it.

But native had years of head start on surface area, and the browser was always going to take a few releases to catch up on the long tail. The long tail is where the awkward moments live. A pop() that warns instead of popping. A pinch that does nothing. A .gltf with an external .bin that takes the whole page down with it. Each one is small. Together they are the difference between "web is supported" and "I never think about which platform I'm on".

And web is where the audience is. No app store, no install, just a link or a QR code on a poster. More of our users are building for it, and more of them are reaching for the parts of ViroReact native had first. So we set a target, full parity, and went after it in one run.

3.2.0: a camera for computers that don't have one

The problem with web AR is that most people who open your link are sitting at a laptop. There is no camera feed to track, so historically they got a black rectangle and a permission prompt they could not answer.

3.2.0 gives them a camera anyway. virtualCamera on ViroARSceneNavigator renders the AR scene with no session and no prompt, from a camera you fly with the mouse. We put a floor plane in so plane-anchored content lands where it should. That is what the demo above is using. It is also what we use all day, because it turns "build, deploy to phone, check" into "save, look".

Then we switched on the things a scene needs to feel alive. Physics bodies simulate. onCollision fires. You can drag something, let go, and it flies off with the velocity of your hand. Scene navigation works with proper push, pop and jump. And two quiet fixes that used to make people doubt themselves: clicks now reach the node native would give them to, and changing opacity no longer teleports a node back to where it was mounted.

3.2.1: the one about things staying where you put them

Monday was native's turn, and it is worth a minute because it shows we were not shipping web by neglecting phones.

If you have ever placed an object in AR and watched it slide across the room over the next thirty seconds, this is the release for you. On iOS, content at the root of an AR scene was never anchored, so it drifted as ARKit refined its map. On Android it was anchored, unless tracking took more than three seconds to start, in which case the retries ran out and the object floated free for the whole session. Both fixed. Content anchors the moment tracking is good and stays put.

Also: cloud anchors no longer time out while they are still uploading on a slow uplink, tracking no longer flickers on a Galaxy A56, a tap on a moving object fires onClick, and ViroARObjectMarker fires on current iOS for the first time in a while.

And the first of the Expo SDK 58 surprises. SDK 58 turns R8 minification on by default, which quietly stripped classes GVR looks up by name. Release builds crashed. We put the keep rules in Viro's consumer rules so you never find out.

3.2.2: the day mobile Safari stopped being scary

Tuesday is where the browser stopped feeling like the junior platform.

Gestures came in properly: pinch, rotate, fuse, and drag in live AR, not just under the virtual camera. Text got weight, style, extrusion and stroke. Materials got bloom and chroma key. The camera feed started reporting ambient light, so your scene lights match the room. And a new webCapabilities export tells you exactly what the browser cannot do, so you can branch on it instead of guessing.

But the two changes I care about most are fixes. Sounds now mix with video on iOS Safari; before, a sound beside a playing video would just go silent. And a lost WebGL context recovers: the navigator spins up a new renderer, remounts the scene, and live AR shows its Start button again. If you have shipped WebGL to a phone, you know that one is the difference between a demo and a product.

3.2.3: the sweep

On the Wednesday we sat down and compared every component, prop, event and ref method, web against native, line by line. The list was long. By Friday most of it was shipped.

I will not reproduce the list (it is in the changelog), but a few that made me smile. Permissions now actually answer: checkPermissions used to resolve {}, which meant an app that gated AR on result.camera never opened. Portals got their own backgrounds and fire enter and exit. Spatial sound follows the camera with native's rolloff. Animation chains, sequences and run={false} pausing all behave. And a .gltf with external files is fetched and inlined instead of aborting the page.

Six days earlier, web was a supported target with a known gap list. After 3.2.3 that list is nearly empty, and webCapabilities will tell you what is on it.

How a week like this actually happens

People ask how a small team does this without breaking things. The honest answers are less exciting than the changelog.

The web runtime lives next to native. Every component has a *.web.tsx beside its native file. When we fix a behaviour, the definition of "correct" is one directory over.

We review for disagreement, not for features. Wednesday's review did not ask "what should web do next?" It asked "where does web disagree with native?" That turns a roadmap into a checklist, and you can burn a checklist down in days.

We ship with feature detection. Every web change in 3.2.3 that needs new renderer API checks for it at runtime and falls back with a one-time warning. No flag day, no waiting for every app to upgrade before we release.

We fix the layer underneath. The R8 crashes were not Viro bugs. They were keep rules in Room and GVR that Expo's new defaults exposed. We could have written a docs page. We fixed it in Viro's consumer rules so nobody has to read one.

Agents do a lot of the typing. We build ReactVision agent-first. The ViroReact MCP server gives an agent the full component reference, the examples and the changelog, and that is the same tooling our own team used to work through the parity list. The judgement is ours. The volume is shared.

Your move

Upgrade to 3.2.3 and @reactvision/viro-web-renderer 1.3.0. The only breaking change is React Native 0.88 and Expo SDK 58; everything else is additive. If you already ship a web target, you will feel it the first time you reach for a prop that used to be native-only.

If you have never built web AR with ViroReact, scroll back up and throw a sphere. Then connect your agent to the ViroReact MCP server and ask it for a scene of your own. Come and tell us what broke on Discord. We are clearly in a shipping mood.

Get the ReactVision newsletter

Product announcements, including ViroReact, ReactVision Spatial, Editor and MCP updates, direct to your inbox. No spam, and you can unsubscribe at any time.

Subscribe