Skip to main content
This is the lookup reference for @flowpilotjs/react-native-sdk. Every symbol here is exported from the package’s entry point. The guide pages (Getting started through Offline and performance) teach how to use them in context; this page is the index.
This reference targets the current published FlowPilot Expo SDK (1.0.x) on npm. Public exports can change between versions, so check the installed package version (and FlowPilot.sdkVersion) if a signature here does not match.

Setup

FlowPilot is a singleton instance. Configure it once, then call methods on the same import.

FlowPilotConfiguration

Only apiKey and appId are required; everything else has a default.
See Configuration.

Presenting

Methods on FlowPilot. See Presenting placements and Prefetching.

PrefetchOutcome

Components

How a session becomes on-screen UI. See Presenting placements.

Session

FlowSession is the live handle to a presented flow. See Results and outcomes.

Results and lifecycle types

Variables

See Variables and context.

Custom components, screens, and actions

Methods on FlowPilot, plus the definition types. See Custom components and actions and Custom screens.
Custom components render today. Custom screens do not: registerCustomScreen stores the definition but the renderer never invokes it in this build. See Custom screens.

Analytics

See Analytics integration.
The full on-wire event shape is exported as the AnalyticsEvent type. Automatic event names: flow_start, screen_view, screen_exit, element_interaction, flow_complete, flow_exit, experiment_exposure, plus conversion from trackConversion. See the Event taxonomy.

Errors

See Error handling.

Caching and offline

See Caching and Offline and bundled flows.

Media and fonts

See Media preloading.

Accessibility

All built-in animations respect the reduce-motion setting automatically.

Advanced exports

Flows are drawn by the FlowPilot runtime in a WebView, so there are no renderer internals to import any more (2.0 removed ScreenRenderer, ComponentRenderer, the background/animation/text-effect/particle exports and the component-level model types along with the React Native renderer). What remains for advanced hosts:
  • Presentation: FlowPresenter (+ FlowPresenterProps) for custom embedding, and FlowWebRuntimeView if you compose the WebView yourself.
  • Runtime identity: isRuntimeAvailable, runtimeMetadata, EXPECTED_FLOW_SCHEMA_VERSION, BRIDGE_PROTOCOL_VERSION — enough to report which runtime build your app shipped.
  • Types for the envelope: FlowDefinition, FlowNode, ScreenNode, FlowOutcome, ComponentAction, FlowVariable, VariableValue. These describe what the host reads, not the flow’s component tree — for that, read the flow JSON. See the Flow schema and Component reference.