@mxenabled/react-native-connect-widget-sdk
v1.0.0
Published
MX React Native Connect Widget SDK
Maintainers
Keywords
Readme
MX React Native Widget SDK
Purpose
The purpose of this project is to be able to easily integrate the MX connect widget into a react native app.
Implementation guide
The implementation guide lives in the MX docs [here](Add something here when it exists).
How it works
This package renders a React Native Webview using the provided url as the source uri. It also attaches a request interceptor to the webview using onShouldStartLoadWithRequest. This interceptor listens for requests with the mx: protocol that come from the MX connect widget. When an mx protocol request comes through it calls the onEvent callback provided to the <ConnectWidget />. When a request is received from the webviewed connect widget to open an OAuth flow it is opened within the app using an ASWebAuthenticationSession for iOS and an Auth Tab for Android.
API Documentation
The api documentation is here
Contributing
Read the contributing guide to learn about the development process.
License
This project is lincensed under the terms of the MIT license.
