Skip to content
Preview: packages are not published yet.
Learn · board 1

The life of a surface

A surface is always in one state. Step through one surface from the moment the app describes it, through a failure and a retry, until it is closed.

step 8 / 8
describedmountinglivefailedclosed
Native screen · Loyalty
descriptor { "v": 1, "id": "…", "name": "PointsHistory", "props": { "userId": "42" } }
PointsHistoryReact surface · userId 42
MyErrorViewyour native fallback
Native row · Offers
Another native screen on top
1 createHermes2 prepareBytecode3 evaluate4 mount
  1. 1described. The app placed a host and gave it a descriptor. Nothing has been asked of the runtime.
  2. 2mounting. Boot stages 1 to 3 run once per runtime, then stage 4 mounts this surface.
  3. 3live. React rendered the surface for the first time. It sits in the native container.
  4. 4Still live. Another screen covers it. That is not a transition: nothing unmounts, and scroll and inner navigation stay.
  5. 5failed(renderException). Only this surface fails. Your fallback shows and the rest of the app carries on.
  6. 6retry(). Back to mounting. For a render exception the same runtime is reused, so only stage 4 runs.
  7. 7live again.
  8. 8closed. Terminal. The root is unmounted and the host is released.