0.0.59 • Published 3 days ago
@mycoverai/mca-react-native-sdk v0.0.59
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
- import the package into your js file
import McaSDK from "@mycoverai/mca-react-native-sdk"
- proceed to call the Mycover.ai component in your file
<McaSDK apiKey="<YOUR-MCA-API-KEY>" onComplete={() => console.log('done')} />
0.0.59
3 days ago
0.0.58
9 days ago
0.0.57
1 month ago
0.0.55
2 months ago
0.0.56
2 months ago
0.0.54
2 months ago
0.0.53
2 months ago
0.0.52
2 months ago
0.0.47
3 months ago
0.0.51
3 months ago
0.0.50
3 months ago
0.0.48
3 months ago
0.0.49
3 months ago
0.0.46
3 months ago
0.0.40
3 months ago
0.0.41
3 months ago
0.0.42
3 months ago
0.0.20
3 months ago
0.0.43
3 months ago
0.0.21
3 months ago
0.0.44
3 months ago
0.0.22
3 months ago
0.0.45
3 months ago
0.0.23
3 months ago
0.0.24
3 months ago
0.0.25
3 months ago
0.0.37
3 months ago
0.0.15
3 months ago
0.0.38
3 months ago
0.0.16
3 months ago
0.0.39
3 months ago
0.0.17
3 months ago
0.0.18
3 months ago
0.0.19
3 months ago
0.0.30
3 months ago
0.0.31
3 months ago
0.0.32
3 months ago
0.0.10
3 months ago
0.0.33
3 months ago
0.0.11
3 months ago
0.0.34
3 months ago
0.0.12
3 months ago
0.0.35
3 months ago
0.0.13
3 months ago
0.0.36
3 months ago
0.0.14
3 months ago
0.0.26
3 months ago
0.0.9
3 months ago
0.0.27
3 months ago
0.0.28
3 months ago
0.0.29
3 months ago
0.0.8
11 months ago
0.0.7
11 months ago
0.0.6
11 months ago