@tiun/react-native-sdk
v0.2.0
Published
tiun SDK for React Native — payments and subscriptions
Maintainers
Readme
@tiun/react-native-sdk
tiun SDK for React Native. Renders the tiun web snippet inside a WebView and
bridges its login/checkout overlays to native, with device-bound auth backed by
the native keystore/keychain.
Install
npm install @tiun/react-native-sdkUsage
import { TiunProvider, useTiun, useTiunEvent } from '@tiun/react-native-sdk';
function App() {
return (
<TiunProvider
config={{
snippetId: 'your-snippet-id',
returnUrl: 'myapp://tiun/return'
}}
>
<Screen />
</TiunProvider>
);
}The app must register the returnUrl deep-link scheme in its native config; the
SDK only consumes the URL.
Peer dependencies
react, react-native, react-native-webview, react-native-secure-sign,
react-native-keychain, react-native-inappbrowser-nitro, react-native-nitro-modules
