Skip to content

Trans-Fi/transfi-ramp-react-native-sdk

Repository files navigation

transfi-ramp-react-native-sdk

react native webview sdk

Installation

npm install transfi-ramp-react-native-sdk

Usage

import { TransfiRampReactNativeSdkView } from "transfi-ramp-react-native-sdk";

// ...

<TransfiRampReactNativeSdkView
      styles={styles.webview}
      source={{ uri: 'https://buy.transfi.com/?apiKey=[YOUR_API_KEY]' }}
      javaScriptEnabled={true}
      messagingEnabled={true}
      domStorageEnabled={true}
      onMessage={(event) => {
        console.log('event', event?.nativeEvent?.data);
      }}
    />

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

transfi-ramp-react-native-sdk