JSPM

react-native-priv-sdk

0.0.75
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3728
  • Score
    100M100P100Q96888F
  • License MIT

Official MyCover.ai SDK. Supercharge your product with MyCover AI Insurance offerings. Create embedded insurance offerings or full white label insurance applications that excite your customers.

Package Exports

  • react-native-priv-sdk
  • react-native-priv-sdk/lib/commonjs/index.js
  • react-native-priv-sdk/lib/module/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-priv-sdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

MCA React Native SDK

Our React Native SDK powered by the mycover.ai platform, for buying and managing insurance policies.

Installation

npm install --save @mycoverai/mca-react-native-sdk
npm install --dev react-native-svg-transformer

Create or Update metro.config.js & paste the following

const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');

const defaultConfig = getDefaultConfig(__dirname);
const {assetExts, sourceExts} = defaultConfig.resolver;

const config = {
  transformer: {
    babelTransformerPath: require.resolve('react-native-svg-transformer'),
  },
  resolver: {
    assetExts: assetExts.filter(ext => ext !== 'svg'),
    sourceExts: [...sourceExts, 'svg'],
  },
};

module.exports = mergeConfig(defaultConfig, config);

Usage

  1. import the package into your js file
import McaSDK from "@mycoverai/mca-react-native-sdk"
  1. proceed to call the Mycover.ai component in your file
 <McaSDK apiKey="<YOUR-MCA-API-KEY>" onComplete={() => console.log('done')} />