Documentation Index
Fetch the complete documentation index at: https://docs.firstflow.app/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Exports
@firstflow/react-native re-exports everything from @firstflow/react and adds mobile-specific utilities.
From @firstflow/react-native
| Export | Description |
|---|---|
FirstflowProvider | Same as @firstflow/react. |
FirstflowWidget | Same as @firstflow/react. Renders using React Native primitives. |
Survey | Same as @firstflow/react. |
useFirstflow() | Same as @firstflow/react. |
useFirstflowSurvey() | Same as @firstflow/react. |
useKeyboardHeight() | Returns the current software keyboard height in pixels. |
Platform adapters
The SDK automatically uses native implementations for all platform capabilities. No manual configuration required.| Capability | Implementation |
|---|---|
| Frequency tracking | @react-native-async-storage/async-storage |
| Device detection | react-native’s Platform and Dimensions |
| Theme preference | react-native’s Appearance API |
| Link opening | react-native’s Linking.openURL |
| HTTP transport | fetch |
React reference pages
All shared components and hooks are documented in the React reference:FirstflowProvider
FirstflowWidget
useFirstflow()
Survey
useFirstflowSurvey()
Troubleshooting
AsyncStorage peer dependency warning@firstflow/react-native
Add to metro.config.js:
pod install after installing AsyncStorage. A missing native module causes the storage adapter to silently fall back to in-memory state, which means frequency records are lost on restart and experiences may show again unexpectedly.