The package that gives access to an Extension that allows adding react native support to our client.Documentation Index
Fetch the complete documentation index at: https://docs.dynamic.xyz/docs/llms.txt
Use this file to discover all available pages before exploring further.
Functions
ReactNativeExtension method
reactNative module
Provides access to the webview that renders our SDK in the background of your app.
The client itself is only an interface to our SDK, so it must be rendered to your app in order for the client
to work.
| Property | Type | Description |
|---|---|---|
WebView | () => JSX.Element | The react native component that renders our SDK in the background. |
Types
ReactNativeExtensionProps type
Properties which you can pass to the extension.
| Param | Type | Description |
|---|---|---|
appOrigin | string? | The web origin of your app (e.g. https://demo.dynamic.xyz). Used for SIWE messages, fetch Origin headers, and passkey operations. Deep link redirects use the auto-configured redirectUrl from expo-linking. |
webviewUrl | string? | The URL to load in the WebView. Defaults to https://webview.dynamicauth.com/${version}. |
webviewDebuggingEnabled | boolean? | Enables debugging in the WebView (e.g. Safari Web Inspector on iOS, chrome://inspect on Android). Useful in development. |
embeddedWebView | boolean? | When true on iOS / Android, the SDK hosts the webview-controller in a native overlay window outside the React Native view tree. See Embedded WebView mode. Defaults to false. Available from v4.82.0. |
Embedded WebView mode
Available from v4.82.0.
embeddedWebView is set to true, the SDK renders its webview-controller inside a
dedicated native overlay (WKWebView on iOS, android.webkit.WebView on Android) owned by a
separate UI window outside the React Native view tree.
This isolates the webview from RN re-renders, navigation transitions, and other lifecycle
events that can otherwise tear the webview down — which is useful for apps with complex
navigation stacks where the wallet session needs to survive aggressive remounts.
On platforms other than iOS / Android (e.g. web), the
embeddedWebView flag is ignored
and the standard react-native-webview path is used.core.initialization.error with WebViewFailedToLoadError — consumers should treat the
SDK as un-initialised and react accordingly.