@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 rendering exports
The package also exports the renderer internals so preview tooling and advanced hosts can drive rendering directly. Most apps never import these; useFlowPilotPresenter 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.
FlowDefinition, FlowNode, ComponentNode, ComponentType, PropertyValue, Condition, ComponentAction, TransitionConfig, ScreenBackground, AnimationTimeline, PersistentUI, and more. See the Flow schema and Component reference.