- OAuth redirects are opened within the app, reducing the likelihood of user dropoff compared to previously complex workflows and UX.
- Simplified integration compared to the previous React Native SDK or embedding the widget directly via a WebView.
LEGACY WIDGET SDKTo refer to the previous React Native SDK, see the legacy documentation.
Prerequisites
Before integrating the SDK, ensure you have:- An account on the Client Dashboard
- A React Native application (iOS or Android)
Backend Setup
Create a backend endpoint that calls the Platform API to generate widget URLs with the required parameters for a mobile webview integration:
client_redirect_url: Deep link URL that returns users to your app (for example,yourappscheme://connect).is_mobile_webview: Must be set totruefor mobile integrations.widget_type: Set toconnect_widget.
Render Component
Import and render the
ConnectWidget component with the widget URL and event callbacks.These props are required:url(type:string): The generated Connect Widget URL. This URL will be loaded in the underlying WebView component.onEvent(type:(event: Event) => void):eventcontains the event object emitted by the widget. For a complete list of events you must handle, see Widget Events.
webViewProps (type: WebViewProps). By default, the WebView will be styled with { height: "100%", width: "100%" } if no webViewProps.style is provided.Deep Link Configuration
Configure your app to handle the
client_redirect_url deep link that returns users to the widget after OAuth completion.SUCCESSYou’ve embedded the widget into your react native app using the React Native SDK.

