Hyperview

Hyperview

  • Guides
  • Examples
  • Reference
  • Blog

›Hyperview Client

Reference

  • Index

Behaviors

  • Behavior Attributes
  • <behavior>
  • Alert
  • Share

Display Elements

  • <doc>
  • <screen>
  • <header>
  • <body>
  • <view>
  • <text>
  • <image>
  • <list>
  • <section-list>
  • <section>
  • <section-title>
  • <items>
  • <item>
  • <spinner>
  • <web-view>

Input Elements

  • <form>
  • <text-field>
  • <select-single>
  • <select-multiple>
  • <option>
  • <picker-field>
  • <picker-item>
  • <switch>
  • <date-field>

Style Elements

  • <styles>
  • <style>
  • <modifier>

Hyperview Client

  • Hyperview component
  • Custom elements
  • Custom behaviors
  • Loading Screen

Hyperview Navigation

  • <navigator>
  • <nav-route>

Hyperview component

The hyperview npm module exports the Hyperview React Native component. Hyperview takes props to load a particular URL (with an HXML response).

Here's a minimal example to render one screen:

import Hyperview from 'hyperview';

function Screen({ url }) {
  return <Hyperview entrypointUrl={url} fetch={fetch} />;
}
  • entrypointUrl is the URL for the screen. Hyperview will make a GET request to fetch the URL. The response should be an HXML doc, that will be parsed and rendered on-screen.
  • fetch is the fetch method used to make requests in the screen. Since it is injected, the app can modify the method. This is commonly done to add headers for authentication, like an API header or cookie.

To see more examples of Hyperview features, check out the demo app code.

← <modifier>Custom elements →
Hyperview
Docs
ExamplesHyperview Reference
More
BlogGitHub
Copyright © 2025 Instawork