Skip to content

Commit cbc7201

Browse files
hetmanntalesdsp
andauthored
Dev (#73)
* DEV: extracted usage from component comments to COMPONENTS.md file * Fix for #51 * added npmignore file * DEV: refactored helpers, updates for Block, Button & Text, tests * DEV: fix Button flex issue on Android * DEV: color removed from Input due to Android bug * DEV: version 0.1.4 * Hotfix (#58) * Dev (#57) * DEV: extracted usage from component comments to COMPONENTS.md file * Fix for #51 * added npmignore file * DEV: refactored helpers, updates for Block, Button & Text, tests * DEV: fix Button flex issue on Android * DEV: color removed from Input due to Android bug * DEV: version 0.1.4 * Fix typings * update tests Co-authored-by: Hetmann W. Iohan <[email protected]> * DEV: added react-native to dependencies, version 0.1.5 * DEV: npmpublish updates * DEV: removed npmpublish.yml using github workflows * Dev hotfix (#70) * change compiler options * explicitly export path * include files in compiler * resolve react-native/dom conflict during build * remove rn dep, remove unused declaration lines (#71) Co-authored-by: Tales Pereira <[email protected]>
1 parent 8ef74e5 commit cbc7201

File tree

6 files changed

+67
-2779
lines changed

6 files changed

+67
-2779
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Block, Button, Card, Input, Text } from "./src";
1+
import { Block, Button, Card, Input, Text } from "./src/index";
22
import * as theme from "./src/theme";
33
import * as Utils from "./src/utils";
44

package.json

+2-5
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@types/enzyme-adapter-react-16": "^1.0.6",
2323
"@types/jest": "^25.2.1",
2424
"@types/react": "^16.9.34",
25-
"@types/react-native": "^0.62.2",
25+
"@types/react-native": "^0.62.7",
2626
"@types/react-test-renderer": "^16.9.2",
2727
"enzyme": "^3.10.0",
2828
"enzyme-adapter-react-16": "^1.14.0",
@@ -32,7 +32,6 @@
3232
"prettier": "^2.0.4",
3333
"react": "^16.13.1",
3434
"react-dom": "^16.13.1",
35-
"react-native": "https://github.com/expo/react-native/archive/sdk-37.0.1.tar.gz",
3635
"react-native-testing-library": "^1.13.0",
3736
"react-test-renderer": "^16.13.1",
3837
"ts-jest": "^25.3.1",
@@ -41,7 +40,5 @@
4140
"eslintConfig": {
4241
"extends": "universe/native"
4342
},
44-
"dependencies": {
45-
"react-native": "*"
46-
}
43+
"dependencies": {}
4744
}

src/index.d.ts

+5-12
Original file line numberDiff line numberDiff line change
@@ -161,27 +161,20 @@ export type InputAction = {
161161
* Props
162162
*/
163163

164-
export interface BlockProps extends BlockOptions, ThemeProps {
165-
[key: string]: any;
166-
}
164+
export interface BlockProps extends BlockOptions, ThemeProps {}
167165

168-
export interface ButtonProps extends ButtonOptions, ThemeProps {
169-
[key: string]: any;
170-
}
166+
export interface ButtonProps extends ButtonOptions, ThemeProps {}
171167

172168
export type ButtonInstanceProps = ButtonProps &
173169
TouchableWithoutFeedbackProps &
174170
TouchableHighlightProps &
175171
TouchableNativeFeedbackProps & {
176172
Touchable?: any;
173+
children: any;
177174
};
178-
export interface TextProps extends TextOptions, ThemeProps {
179-
[key: string]: any;
180-
}
175+
export interface TextProps extends TextOptions, ThemeProps {}
181176

182-
export interface CardProps extends CardOptions, ThemeProps {
183-
[key: string]: any;
184-
}
177+
export interface CardProps extends CardOptions, ThemeProps {}
185178

186179
export interface InputProps extends InputOptions, ThemeProps {}
187180

tsconfig.jest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "./tsconfig",
33
"compilerOptions": {
4-
"jsx": "react",
4+
"jsx": "react-native",
55
"module": "commonjs"
66
}
77
}

tsconfig.json

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,20 @@
22
"compilerOptions": {
33
/* Basic Options */
44
// "incremental": true, /* Enable incremental compilation */
5-
"target": "es5" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
5+
"target": "ES2017" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
66
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
7-
// "lib": [], /* Specify library files to be included in the compilation. */
7+
"lib": [
8+
"ES2017"
9+
] /* Specify library files to be included in the compilation. */,
810
"allowJs": true /* Allow javascript files to be compiled. */,
911
// "checkJs": true, /* Report errors in .js files. */
10-
"jsx": "preserve" /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */,
12+
"jsx": "react-native" /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */,
1113
"declaration": true /* Generates corresponding '.d.ts' file. */,
1214
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
1315
// "sourceMap": true, /* Generates corresponding '.map' file. */
1416
// "outFile": "./", /* Concatenate and emit output to single file. */
1517
"outDir": "./dist" /* Redirect output structure to the directory. */,
16-
"rootDir": "./src" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
18+
"rootDir": "./" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
1719
// "composite": true, /* Enable project compilation */
1820
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
1921
// "removeComments": true, /* Do not emit comments to output. */,

0 commit comments

Comments
 (0)