react-native-package-fast 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/module/cores/ButtonApp.js +3 -2
- package/src/module/cores/DeviceUtils.js +1 -1
- package/src/module/cores/ImageApp.js +45 -0
- package/src/module/cores/ImageFastApp.js +45 -0
- package/src/module/cores/InputApp.js +16 -0
- package/src/module/cores/Utils.js +120 -5
- package/src/module/index.js +4 -1
- package/src/typescript/cores/ImageApp.d.ts +5 -0
- package/src/typescript/cores/ImageFastApp.d.ts +5 -0
- package/src/typescript/cores/InputApp.d.ts +5 -0
- package/src/typescript/cores/Utils.d.ts +156 -6
- package/src/typescript/index.d.ts +4 -1
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-package-fast",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "test",
|
|
5
5
|
"main": "./src/module/index.js",
|
|
6
6
|
"types": "./src/typescript/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"test": "test1"
|
|
8
|
+
"test": "test1",
|
|
9
|
+
"pub": "npm publish"
|
|
9
10
|
},
|
|
10
11
|
"author": "dung.dang",
|
|
11
12
|
"license": "ISC"
|
|
12
|
-
|
|
13
13
|
}
|
|
@@ -10,7 +10,8 @@ const ButtonApp = props => {
|
|
|
10
10
|
propsText,
|
|
11
11
|
normal,
|
|
12
12
|
disable,
|
|
13
|
-
whiteNormal
|
|
13
|
+
whiteNormal,
|
|
14
|
+
grayNormal
|
|
14
15
|
} = props;
|
|
15
16
|
let _propsText = propsText;
|
|
16
17
|
let styleAll = parseStyles({
|
|
@@ -25,7 +26,7 @@ const ButtonApp = props => {
|
|
|
25
26
|
black: true
|
|
26
27
|
};
|
|
27
28
|
}
|
|
28
|
-
if (disable) {
|
|
29
|
+
if (disable || grayNormal) {
|
|
29
30
|
_propsText = {
|
|
30
31
|
..._propsText,
|
|
31
32
|
h3: true,
|
|
@@ -4,7 +4,7 @@ const {
|
|
|
4
4
|
height: heightScreen
|
|
5
5
|
} = Dimensions.get('window');
|
|
6
6
|
const RFValueHorizontal = function (fontSize) {
|
|
7
|
-
let standardScreenHeight = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
7
|
+
let standardScreenHeight = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : widthScreen;
|
|
8
8
|
const heightPercent = Math.round(fontSize * widthScreen / standardScreenHeight);
|
|
9
9
|
return heightPercent > fontSize + 5 ? fontSize + 5 : heightPercent;
|
|
10
10
|
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Image } from 'react-native';
|
|
4
|
+
import { ImageAppStyles, parseStyles } from './Utils';
|
|
5
|
+
import { ScaleSize } from './DeviceUtils';
|
|
6
|
+
const ImageApp = props => {
|
|
7
|
+
const {
|
|
8
|
+
size,
|
|
9
|
+
source,
|
|
10
|
+
ratio,
|
|
11
|
+
color
|
|
12
|
+
} = props;
|
|
13
|
+
let styleAll = parseStyles({
|
|
14
|
+
passStyle: ['flex', 'width', 'height', 'ratio'],
|
|
15
|
+
styles: ImageAppStyles,
|
|
16
|
+
props
|
|
17
|
+
});
|
|
18
|
+
if (size) {
|
|
19
|
+
styleAll = {
|
|
20
|
+
...styleAll,
|
|
21
|
+
width: ScaleSize(size),
|
|
22
|
+
height: ScaleSize(size)
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
if (ratio) {
|
|
26
|
+
styleAll = {
|
|
27
|
+
...styleAll,
|
|
28
|
+
aspectRatio: ratio
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
if (color) {
|
|
32
|
+
styleAll = {
|
|
33
|
+
...styleAll,
|
|
34
|
+
tintColor: color
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
return /*#__PURE__*/React.createElement(Image, _extends({}, props, {
|
|
38
|
+
style: styleAll,
|
|
39
|
+
source: typeof source === 'string' ? {
|
|
40
|
+
uri: source
|
|
41
|
+
} : source
|
|
42
|
+
}));
|
|
43
|
+
};
|
|
44
|
+
export default ImageApp;
|
|
45
|
+
//# sourceMappingURL=ImageApp.js.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Image from 'react-native-fast-image';
|
|
4
|
+
import { ImageAppStyles, parseStyles } from './Utils';
|
|
5
|
+
import { ScaleSize } from './DeviceUtils';
|
|
6
|
+
const ImageFastApp = props => {
|
|
7
|
+
const {
|
|
8
|
+
size,
|
|
9
|
+
source,
|
|
10
|
+
ratio,
|
|
11
|
+
color
|
|
12
|
+
} = props;
|
|
13
|
+
let styleAll = parseStyles({
|
|
14
|
+
passStyle: ['flex', 'width', 'height', 'ratio'],
|
|
15
|
+
styles: ImageAppStyles,
|
|
16
|
+
props
|
|
17
|
+
});
|
|
18
|
+
if (size) {
|
|
19
|
+
styleAll = {
|
|
20
|
+
...styleAll,
|
|
21
|
+
width: ScaleSize(size),
|
|
22
|
+
height: ScaleSize(size)
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
if (ratio) {
|
|
26
|
+
styleAll = {
|
|
27
|
+
...styleAll,
|
|
28
|
+
aspectRatio: ratio
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
if (color) {
|
|
32
|
+
styleAll = {
|
|
33
|
+
...styleAll,
|
|
34
|
+
tintColor: color
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
return /*#__PURE__*/React.createElement(Image, _extends({}, props, {
|
|
38
|
+
style: styleAll,
|
|
39
|
+
source: typeof source === 'string' ? {
|
|
40
|
+
uri: source
|
|
41
|
+
} : source
|
|
42
|
+
}));
|
|
43
|
+
};
|
|
44
|
+
export default ImageFastApp;
|
|
45
|
+
//# sourceMappingURL=ImageFastApp.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { TextInput } from 'react-native';
|
|
4
|
+
import { InputAppStyles, parseStyles } from './Utils';
|
|
5
|
+
const InputApp = props => {
|
|
6
|
+
let styleAll = parseStyles({
|
|
7
|
+
passStyle: ['flex', 'width', 'height'],
|
|
8
|
+
styles: InputAppStyles,
|
|
9
|
+
props
|
|
10
|
+
});
|
|
11
|
+
return /*#__PURE__*/React.createElement(TextInput, _extends({}, props, {
|
|
12
|
+
style: styleAll
|
|
13
|
+
}));
|
|
14
|
+
};
|
|
15
|
+
export default InputApp;
|
|
16
|
+
//# sourceMappingURL=InputApp.js.map
|
|
@@ -5,7 +5,31 @@ const colors = {
|
|
|
5
5
|
yellow: '#FEBD00',
|
|
6
6
|
grey: '#9C9C9C',
|
|
7
7
|
black: '#303030',
|
|
8
|
-
white: '#ffffff'
|
|
8
|
+
white: '#ffffff',
|
|
9
|
+
Yellow: '#FEBD00',
|
|
10
|
+
Red: '#E42939',
|
|
11
|
+
Orange: '#EE780C',
|
|
12
|
+
Gray1: '#5C5C5C',
|
|
13
|
+
Gray2: '#C4C4C4',
|
|
14
|
+
Gray3: '#D1D1D1',
|
|
15
|
+
Gray4: '#E0E0E0',
|
|
16
|
+
Gray5: '#575757',
|
|
17
|
+
Gray6: '#D8D8D8',
|
|
18
|
+
Gray7: '#747474',
|
|
19
|
+
Gray8: '#D9D9D9',
|
|
20
|
+
Gray9: '#A8A8A8',
|
|
21
|
+
Gray10: '#FAFAFA',
|
|
22
|
+
Gray11: '#686868',
|
|
23
|
+
Gray12: '#F4F4F4',
|
|
24
|
+
Gray13: '#9C9C9C',
|
|
25
|
+
Gray14: '#B0B0B0',
|
|
26
|
+
Gray15: '#595959',
|
|
27
|
+
Gray16: '#E3E3E3',
|
|
28
|
+
Gray17: '#ACACAC',
|
|
29
|
+
Gray18: '#E0E0E0',
|
|
30
|
+
Gray19: '#E5E5E5',
|
|
31
|
+
Gray20: '#E7E7E7',
|
|
32
|
+
Black: '#000000'
|
|
9
33
|
};
|
|
10
34
|
const numStyles = [{
|
|
11
35
|
key: 'padding-',
|
|
@@ -99,6 +123,20 @@ const numStyles = [{
|
|
|
99
123
|
borderWidth: ScaleSize(value)
|
|
100
124
|
};
|
|
101
125
|
}
|
|
126
|
+
}, {
|
|
127
|
+
key: 'font-',
|
|
128
|
+
func: value => {
|
|
129
|
+
return {
|
|
130
|
+
fontSize: ScaleSize(value)
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
}, {
|
|
134
|
+
key: 'line-',
|
|
135
|
+
func: value => {
|
|
136
|
+
return {
|
|
137
|
+
lineHeight: ScaleSize(value)
|
|
138
|
+
};
|
|
139
|
+
}
|
|
102
140
|
}];
|
|
103
141
|
export const parseStyles = _ref => {
|
|
104
142
|
var _Object$keys;
|
|
@@ -145,8 +183,21 @@ const CommonStyles = StyleSheet.create({
|
|
|
145
183
|
position: 'absolute',
|
|
146
184
|
top: 0,
|
|
147
185
|
left: 0
|
|
186
|
+
},
|
|
187
|
+
center: {
|
|
188
|
+
justifyContent: 'center',
|
|
189
|
+
alignItems: 'center'
|
|
190
|
+
},
|
|
191
|
+
centerItem: {
|
|
192
|
+
alignItems: 'center'
|
|
193
|
+
},
|
|
194
|
+
centerContent: {
|
|
195
|
+
justifyContent: 'center'
|
|
148
196
|
}
|
|
197
|
+
// center: { alignItems: 'center' },
|
|
198
|
+
// center: { alignSelf: 'center' },
|
|
149
199
|
});
|
|
200
|
+
|
|
150
201
|
export const ViewAppStyles = StyleSheet.create({
|
|
151
202
|
...CommonStyles,
|
|
152
203
|
Black: {
|
|
@@ -171,6 +222,11 @@ export const ViewAppStyles = StyleSheet.create({
|
|
|
171
222
|
export const TextAppStyles = StyleSheet.create({
|
|
172
223
|
...CommonStyles,
|
|
173
224
|
//size
|
|
225
|
+
default: {
|
|
226
|
+
fontSize: ScaleSize(14),
|
|
227
|
+
lineHeight: ScaleSize(20),
|
|
228
|
+
fontFamily: 'NotoSansKR-Regular'
|
|
229
|
+
},
|
|
174
230
|
h1: {
|
|
175
231
|
fontSize: ScaleSize(20),
|
|
176
232
|
lineHeight: ScaleSize(26)
|
|
@@ -219,15 +275,36 @@ export const TextAppStyles = StyleSheet.create({
|
|
|
219
275
|
orange: {
|
|
220
276
|
color: colors.orange
|
|
221
277
|
},
|
|
278
|
+
Gray5: {
|
|
279
|
+
color: colors.Gray5
|
|
280
|
+
},
|
|
222
281
|
//weight
|
|
282
|
+
Bold: {
|
|
283
|
+
fontFamily: 'NotoSansKR-Black'
|
|
284
|
+
},
|
|
223
285
|
bold: {
|
|
224
|
-
|
|
286
|
+
fontFamily: 'NotoSansKR-Bold'
|
|
287
|
+
},
|
|
288
|
+
medium: {
|
|
289
|
+
fontFamily: 'NotoSansKR-Medium'
|
|
225
290
|
},
|
|
226
291
|
thin: {
|
|
227
|
-
|
|
292
|
+
fontFamily: 'NotoSansKR-Thin'
|
|
228
293
|
},
|
|
229
|
-
|
|
230
|
-
|
|
294
|
+
light: {
|
|
295
|
+
fontFamily: 'NotoSansKR-Light'
|
|
296
|
+
},
|
|
297
|
+
regular: {
|
|
298
|
+
fontFamily: 'NotoSansKR-Regular'
|
|
299
|
+
},
|
|
300
|
+
gs_light: {
|
|
301
|
+
fontFamily: 'GmarketSansTTFLight'
|
|
302
|
+
},
|
|
303
|
+
gs_bold: {
|
|
304
|
+
fontFamily: 'GmarketSansTTFBold'
|
|
305
|
+
},
|
|
306
|
+
gs_medium: {
|
|
307
|
+
fontFamily: 'GmarketSansTTFMedium'
|
|
231
308
|
},
|
|
232
309
|
//style
|
|
233
310
|
line: {
|
|
@@ -243,6 +320,14 @@ export const TextAppStyles = StyleSheet.create({
|
|
|
243
320
|
});
|
|
244
321
|
export const ButtonAppStyles = StyleSheet.create({
|
|
245
322
|
...ViewAppStyles,
|
|
323
|
+
tabNormal: {
|
|
324
|
+
paddingHorizontal: 16,
|
|
325
|
+
paddingBottom: 7,
|
|
326
|
+
paddingTop: 6,
|
|
327
|
+
borderRadius: 50,
|
|
328
|
+
borderWidth: 1,
|
|
329
|
+
borderColor: colors.Gray2
|
|
330
|
+
},
|
|
246
331
|
normal: {
|
|
247
332
|
paddingVertical: 10,
|
|
248
333
|
alignItems: 'center',
|
|
@@ -250,6 +335,13 @@ export const ButtonAppStyles = StyleSheet.create({
|
|
|
250
335
|
backgroundColor: colors.yellow,
|
|
251
336
|
borderRadius: 5
|
|
252
337
|
},
|
|
338
|
+
grayNormal: {
|
|
339
|
+
paddingVertical: 10,
|
|
340
|
+
alignItems: 'center',
|
|
341
|
+
justifyContent: 'center',
|
|
342
|
+
backgroundColor: '#D1D1D1',
|
|
343
|
+
borderRadius: 5
|
|
344
|
+
},
|
|
253
345
|
yellowSmall: {
|
|
254
346
|
paddingVertical: 7,
|
|
255
347
|
alignItems: 'center',
|
|
@@ -274,4 +366,27 @@ export const ButtonAppStyles = StyleSheet.create({
|
|
|
274
366
|
borderRadius: 5
|
|
275
367
|
}
|
|
276
368
|
});
|
|
369
|
+
export const InputAppStyles = StyleSheet.create({
|
|
370
|
+
...CommonStyles,
|
|
371
|
+
borderType: {
|
|
372
|
+
paddingHorizontal: ScaleSize(10),
|
|
373
|
+
borderWidth: ScaleSize(1),
|
|
374
|
+
borderColor: colors.Gray2,
|
|
375
|
+
height: ScaleSize(40),
|
|
376
|
+
justifyContent: 'center',
|
|
377
|
+
borderRadius: ScaleSize(3)
|
|
378
|
+
}
|
|
379
|
+
});
|
|
380
|
+
export const ImageAppStyles = StyleSheet.create({
|
|
381
|
+
...CommonStyles,
|
|
382
|
+
contain: {
|
|
383
|
+
resizeMode: 'contain'
|
|
384
|
+
},
|
|
385
|
+
cover: {
|
|
386
|
+
resizeMode: 'cover'
|
|
387
|
+
},
|
|
388
|
+
stretch: {
|
|
389
|
+
resizeMode: 'stretch'
|
|
390
|
+
}
|
|
391
|
+
});
|
|
277
392
|
//# sourceMappingURL=Utils.js.map
|
package/src/module/index.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import TextApp from './cores/TextApp';
|
|
2
2
|
import ViewApp from './cores/ViewApp';
|
|
3
3
|
import ButtonApp from './cores/ButtonApp';
|
|
4
|
+
import ImageApp from './cores/ImageApp';
|
|
5
|
+
import InputApp from './cores/InputApp';
|
|
6
|
+
import ImageFastApp from './cores/ImageFastApp';
|
|
4
7
|
import { ScaleSize } from './cores/DeviceUtils';
|
|
5
|
-
export { TextApp, ScaleSize, ButtonApp, ViewApp };
|
|
8
|
+
export { TextApp, ScaleSize, ButtonApp, ViewApp, InputApp, ImageApp, ImageFastApp };
|
|
6
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { TextProps, ViewProps } from 'react-native';
|
|
1
|
+
import { ImageProps, TextInputProps, TextProps, ViewProps } from 'react-native';
|
|
2
2
|
import { TouchableOpacityProps } from 'react-native';
|
|
3
|
+
import { FastImageProps } from 'react-native-fast-image';
|
|
3
4
|
interface ByPassProps {
|
|
4
5
|
flex?: any;
|
|
5
6
|
width?: any;
|
|
@@ -8,6 +9,9 @@ interface ByPassProps {
|
|
|
8
9
|
export declare const parseStyles: ({ passStyle, styles, props }: any) => any;
|
|
9
10
|
interface CommonProps extends ByPassProps {
|
|
10
11
|
topLeft?: any;
|
|
12
|
+
center?: boolean;
|
|
13
|
+
centerItem?: boolean;
|
|
14
|
+
centerContent?: boolean;
|
|
11
15
|
}
|
|
12
16
|
export interface ViewAppProps extends ViewProps, CommonProps {
|
|
13
17
|
Black?: boolean;
|
|
@@ -49,6 +53,16 @@ export declare const ViewAppStyles: {
|
|
|
49
53
|
top: number;
|
|
50
54
|
left: number;
|
|
51
55
|
};
|
|
56
|
+
center: {
|
|
57
|
+
justifyContent: "center";
|
|
58
|
+
alignItems: "center";
|
|
59
|
+
};
|
|
60
|
+
centerItem: {
|
|
61
|
+
alignItems: "center";
|
|
62
|
+
};
|
|
63
|
+
centerContent: {
|
|
64
|
+
justifyContent: "center";
|
|
65
|
+
};
|
|
52
66
|
};
|
|
53
67
|
export interface TextAppProps extends TextProps, CommonProps {
|
|
54
68
|
h1?: boolean;
|
|
@@ -64,9 +78,16 @@ export interface TextAppProps extends TextProps, CommonProps {
|
|
|
64
78
|
white?: boolean;
|
|
65
79
|
yellow?: boolean;
|
|
66
80
|
orange?: boolean;
|
|
81
|
+
Gray5?: boolean;
|
|
67
82
|
bold?: boolean;
|
|
68
83
|
medium?: boolean;
|
|
69
84
|
thin?: boolean;
|
|
85
|
+
regular?: boolean;
|
|
86
|
+
Bold?: boolean;
|
|
87
|
+
light?: boolean;
|
|
88
|
+
gs_light?: boolean;
|
|
89
|
+
gs_bold?: boolean;
|
|
90
|
+
gs_medium?: boolean;
|
|
70
91
|
line?: boolean;
|
|
71
92
|
center?: boolean;
|
|
72
93
|
left?: boolean;
|
|
@@ -75,6 +96,11 @@ export interface TextAppProps extends TextProps, CommonProps {
|
|
|
75
96
|
hardHeight?: boolean;
|
|
76
97
|
}
|
|
77
98
|
export declare const TextAppStyles: {
|
|
99
|
+
default: {
|
|
100
|
+
fontSize: any;
|
|
101
|
+
lineHeight: any;
|
|
102
|
+
fontFamily: string;
|
|
103
|
+
};
|
|
78
104
|
h1: {
|
|
79
105
|
fontSize: any;
|
|
80
106
|
lineHeight: any;
|
|
@@ -122,14 +148,35 @@ export declare const TextAppStyles: {
|
|
|
122
148
|
orange: {
|
|
123
149
|
color: string;
|
|
124
150
|
};
|
|
151
|
+
Gray5: {
|
|
152
|
+
color: string;
|
|
153
|
+
};
|
|
154
|
+
Bold: {
|
|
155
|
+
fontFamily: string;
|
|
156
|
+
};
|
|
125
157
|
bold: {
|
|
126
|
-
|
|
158
|
+
fontFamily: string;
|
|
159
|
+
};
|
|
160
|
+
medium: {
|
|
161
|
+
fontFamily: string;
|
|
127
162
|
};
|
|
128
163
|
thin: {
|
|
129
|
-
|
|
164
|
+
fontFamily: string;
|
|
130
165
|
};
|
|
131
|
-
|
|
132
|
-
|
|
166
|
+
light: {
|
|
167
|
+
fontFamily: string;
|
|
168
|
+
};
|
|
169
|
+
regular: {
|
|
170
|
+
fontFamily: string;
|
|
171
|
+
};
|
|
172
|
+
gs_light: {
|
|
173
|
+
fontFamily: string;
|
|
174
|
+
};
|
|
175
|
+
gs_bold: {
|
|
176
|
+
fontFamily: string;
|
|
177
|
+
};
|
|
178
|
+
gs_medium: {
|
|
179
|
+
fontFamily: string;
|
|
133
180
|
};
|
|
134
181
|
line: {
|
|
135
182
|
textDecorationLine: "underline";
|
|
@@ -146,8 +193,14 @@ export declare const TextAppStyles: {
|
|
|
146
193
|
top: number;
|
|
147
194
|
left: number;
|
|
148
195
|
};
|
|
196
|
+
centerItem: {
|
|
197
|
+
alignItems: "center";
|
|
198
|
+
};
|
|
199
|
+
centerContent: {
|
|
200
|
+
justifyContent: "center";
|
|
201
|
+
};
|
|
149
202
|
};
|
|
150
|
-
export interface ButtonAppProps extends
|
|
203
|
+
export interface ButtonAppProps extends TouchAppProps {
|
|
151
204
|
title?: String;
|
|
152
205
|
children?: any;
|
|
153
206
|
propsText?: TextAppProps;
|
|
@@ -155,8 +208,18 @@ export interface ButtonAppProps extends ViewAppProps {
|
|
|
155
208
|
disable?: boolean;
|
|
156
209
|
yellowSmall?: boolean;
|
|
157
210
|
whiteNormal?: boolean;
|
|
211
|
+
grayNormal?: any;
|
|
212
|
+
tabNormal?: any;
|
|
158
213
|
}
|
|
159
214
|
export declare const ButtonAppStyles: {
|
|
215
|
+
tabNormal: {
|
|
216
|
+
paddingHorizontal: number;
|
|
217
|
+
paddingBottom: number;
|
|
218
|
+
paddingTop: number;
|
|
219
|
+
borderRadius: number;
|
|
220
|
+
borderWidth: number;
|
|
221
|
+
borderColor: string;
|
|
222
|
+
};
|
|
160
223
|
normal: {
|
|
161
224
|
paddingVertical: number;
|
|
162
225
|
alignItems: "center";
|
|
@@ -164,6 +227,13 @@ export declare const ButtonAppStyles: {
|
|
|
164
227
|
backgroundColor: string;
|
|
165
228
|
borderRadius: number;
|
|
166
229
|
};
|
|
230
|
+
grayNormal: {
|
|
231
|
+
paddingVertical: number;
|
|
232
|
+
alignItems: "center";
|
|
233
|
+
justifyContent: "center";
|
|
234
|
+
backgroundColor: string;
|
|
235
|
+
borderRadius: number;
|
|
236
|
+
};
|
|
167
237
|
yellowSmall: {
|
|
168
238
|
paddingVertical: number;
|
|
169
239
|
alignItems: "center";
|
|
@@ -209,6 +279,86 @@ export declare const ButtonAppStyles: {
|
|
|
209
279
|
top: number;
|
|
210
280
|
left: number;
|
|
211
281
|
};
|
|
282
|
+
center: {
|
|
283
|
+
justifyContent: "center";
|
|
284
|
+
alignItems: "center";
|
|
285
|
+
};
|
|
286
|
+
centerItem: {
|
|
287
|
+
alignItems: "center";
|
|
288
|
+
};
|
|
289
|
+
centerContent: {
|
|
290
|
+
justifyContent: "center";
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
export interface InputAppProps extends TextInputProps, CommonProps {
|
|
294
|
+
borderType?: any;
|
|
295
|
+
}
|
|
296
|
+
export declare const InputAppStyles: {
|
|
297
|
+
borderType: {
|
|
298
|
+
paddingHorizontal: any;
|
|
299
|
+
borderWidth: any;
|
|
300
|
+
borderColor: string;
|
|
301
|
+
height: any;
|
|
302
|
+
justifyContent: "center";
|
|
303
|
+
borderRadius: any;
|
|
304
|
+
};
|
|
305
|
+
topLeft: {
|
|
306
|
+
position: "absolute";
|
|
307
|
+
top: number;
|
|
308
|
+
left: number;
|
|
309
|
+
};
|
|
310
|
+
center: {
|
|
311
|
+
justifyContent: "center";
|
|
312
|
+
alignItems: "center";
|
|
313
|
+
};
|
|
314
|
+
centerItem: {
|
|
315
|
+
alignItems: "center";
|
|
316
|
+
};
|
|
317
|
+
centerContent: {
|
|
318
|
+
justifyContent: "center";
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
export interface ImageFastAppProps extends FastImageProps, CommonProps {
|
|
322
|
+
contain?: any;
|
|
323
|
+
cover?: any;
|
|
324
|
+
stretch?: any;
|
|
325
|
+
size?: any;
|
|
326
|
+
ratio?: any;
|
|
327
|
+
color?: any;
|
|
328
|
+
}
|
|
329
|
+
export interface ImageAppProps extends ImageProps, CommonProps {
|
|
330
|
+
contain?: any;
|
|
331
|
+
cover?: any;
|
|
332
|
+
stretch?: any;
|
|
333
|
+
size?: any;
|
|
334
|
+
ratio?: any;
|
|
335
|
+
color?: any;
|
|
336
|
+
}
|
|
337
|
+
export declare const ImageAppStyles: {
|
|
338
|
+
contain: {
|
|
339
|
+
resizeMode: "contain";
|
|
340
|
+
};
|
|
341
|
+
cover: {
|
|
342
|
+
resizeMode: "cover";
|
|
343
|
+
};
|
|
344
|
+
stretch: {
|
|
345
|
+
resizeMode: "stretch";
|
|
346
|
+
};
|
|
347
|
+
topLeft: {
|
|
348
|
+
position: "absolute";
|
|
349
|
+
top: number;
|
|
350
|
+
left: number;
|
|
351
|
+
};
|
|
352
|
+
center: {
|
|
353
|
+
justifyContent: "center";
|
|
354
|
+
alignItems: "center";
|
|
355
|
+
};
|
|
356
|
+
centerItem: {
|
|
357
|
+
alignItems: "center";
|
|
358
|
+
};
|
|
359
|
+
centerContent: {
|
|
360
|
+
justifyContent: "center";
|
|
361
|
+
};
|
|
212
362
|
};
|
|
213
363
|
export {};
|
|
214
364
|
//# sourceMappingURL=Utils.d.ts.map
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import TextApp from './cores/TextApp';
|
|
2
2
|
import ViewApp from './cores/ViewApp';
|
|
3
3
|
import ButtonApp from './cores/ButtonApp';
|
|
4
|
+
import ImageApp from './cores/ImageApp';
|
|
5
|
+
import InputApp from './cores/InputApp';
|
|
6
|
+
import ImageFastApp from './cores/ImageFastApp';
|
|
4
7
|
import { ScaleSize } from './cores/DeviceUtils';
|
|
5
|
-
export { TextApp, ScaleSize, ButtonApp, ViewApp };
|
|
8
|
+
export { TextApp, ScaleSize, ButtonApp, ViewApp, InputApp, ImageApp, ImageFastApp, };
|
|
6
9
|
//# sourceMappingURL=index.d.ts.map
|