infinitylearntestappsdk 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "infinitylearntestappsdk",
3
+ "version": "1.0.0",
4
+ "description": "A React Native SDK with reusable components",
5
+ "main": "src/index.js",
6
+ "react-native": {
7
+ "platforms": {
8
+ "ios": null,
9
+ "android": ">=0.76"
10
+ }
11
+ },
12
+ "dependencies": {
13
+ "react-native-svg": "^12.0.0"
14
+ },
15
+ "devDependencies": {
16
+ "react-native": "0.76",
17
+ "babel-eslint": "^10.1.0"
18
+ },
19
+ "scripts": {
20
+ "build": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res"
21
+ }
22
+ }
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import Svg, { Path } from 'react-native-svg';
3
+
4
+ const MySVGComponent = () => (
5
+ <Svg width="100" height="100" viewBox="0 0 100 100">
6
+ <Path d="M10,10 H90 V90 H10 Z" fill="blue" />
7
+ </Svg>
8
+ );
9
+
10
+ export default MySVGComponent;
package/src/index.js ADDED
@@ -0,0 +1,3 @@
1
+ import MySVGComponent from './components/MySVGComponent';
2
+
3
+ export { MySVGComponent };