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 rendering exports

The package also exports the renderer internals so preview tooling and advanced hosts can drive rendering directly. Most apps never import these; use FlowPilotPresenter instead. They include:
  • Renderers: ScreenRenderer, ComponentRenderer, FlowPresenter, FlowRenderProvider (+ FlowRenderContextValue).
  • Backgrounds: BackgroundRenderer, resolveScreenBackground.
  • Animation hooks: useComponentAnimation, useAttentionEffect, usePressFeedback, useStaggerDelay, useStaggerContext, triggerHaptic, MotionBackgroundLayer, resolveLegacyFlatAnimation.
  • Text effects: TypewriterEffect, CountUpEffect, ScrambleEffect, FadePerLineEffect, TextRotationEffect.
  • Particles: ParticleOverlay (+ ParticleOverlayHandle, ParticleOverlayProps), PARTICLE_PRESETS.
These mirror the model and config types also exported for typing flow JSON: FlowDefinition, FlowNode, ComponentNode, ComponentType, PropertyValue, Condition, ComponentAction, TransitionConfig, ScreenBackground, AnimationTimeline, PersistentUI, and more. See the Flow schema and Component reference.