@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.
Presenting
Methods onFlowPilot. 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 onFlowPilot, plus the definition types. See Custom components and actions and Custom screens.
Analytics
See Analytics integration.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
Advanced exports
Flows are drawn by the FlowPilot runtime in a WebView, so there are no renderer internals to import any more (2.0 removedScreenRenderer, 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, andFlowWebRuntimeViewif 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.