React Native

Embed Polst in a React Native app via the react-native-web bridge — the same @polst-web/sdk renderer the web SDK demo uses also drives the RN web build, so a single component declaration covers both surfaces.

Minimal RN integration

Drop the SDK import + a single PolstView JSX element into any screen. On RN-web the renderer hydrates against the same REST surface the JS SDK demo uses; on native RN, swap to the upstream @polst-web/react-native entry point (same props, same env selection).

Copy this snippet

import React from 'react';
import { PolstView } from '@polst-web/sdk/react';

export function PolstScreen() {
  return (
    <PolstView
      shortId="abc123XYZ_"
      apiOrigin="https://api.polst.app"
    />
  );
}