ParaProvider component sets up the Para context for your React Native app, making all Para hooks available to any component in the tree. It handles client initialization, session persistence via AsyncStorage, and React Query integration.
Import
Usage
Loading State
By default,ParaProvider blocks rendering until the SDK is ready. You can customize this behavior:
With Fallback UI
Show a loading indicator instead of a blank screen while the SDK initializes:With Immediate Rendering
Render children immediately and let them handle the loading state usinguseParaStatus():
With Event Callbacks
Receive lifecycle events like login, logout, and signing:With Custom Storage
By default,ParaProvider persists session data using @react-native-async-storage/async-storage. You can provide your own storage adapter to use a different backend (e.g. SecureStore, MMKV, or an encrypted store):