File tree Expand file tree Collapse file tree 3 files changed +63
-2
lines changed Expand file tree Collapse file tree 3 files changed +63
-2
lines changed Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ export type ProgressBarAndroidProps = {
3
+ /**
4
+ * styleAttr: style of ProgressBar
5
+ *
6
+ * default: 'Normal'
7
+ */
8
+ styleAttr ?: 'Normal' | 'Horizontal' | 'Small' | 'Large' | 'Inverse' | 'SmallInverse' | 'LargeInverse'
9
+ /**
10
+ * color: Color of the ProgressBar
11
+ */
12
+ color ?: string
13
+ /**
14
+ * indeterminate: boolean flag for indeterminate mode.
15
+ *
16
+ * Use indeterminate mode for the progress bar when you do not know how long an operation will take. Indeterminate mode is the default for progress bar and shows a cyclic animation without a specific amount of progress indicated.
17
+ *
18
+ * default: false
19
+ */
20
+ indeterminate ?: boolean
21
+ /**
22
+ * progress: sets the amount of progress in 0-100.
23
+ *
24
+ * 25 will show that a progress bar is 25% complete
25
+ */
26
+ progress ?: number
27
+ /**
28
+ * animating: weather ProgressBar is animated or not.
29
+ *
30
+ * default: true
31
+ */
32
+ animating ?: boolean
33
+ }
34
+ export class ProgressBarAndroid extends React . Component < ProgressBarAndroidProps > { }
Original file line number Diff line number Diff line change 3
3
"version" : " 1.0.0" ,
4
4
"description" : " Progress Bar component for React Native" ,
5
5
"main" : " index.js" ,
6
+ "types" :" index.d.ts" ,
6
7
"scripts" : {
7
8
"start" : " node node_modules/react-native/local-cli/cli.js start" ,
8
9
"start:android" : " adb shell am start -n com.androidprogressbar/.MainActivity" ,
26
27
" android" ,
27
28
" ios" ,
28
29
" js" ,
29
- " index.js"
30
+ " index.js" ,
31
+ " index.d.ts"
30
32
],
31
33
"author" :
" Wagner Maciel <[email protected] >" ,
32
34
"contributors" : [
43
45
"@babel/core" : " ^7.4.3" ,
44
46
"@babel/runtime" : " ^7.4.3" ,
45
47
"@react-native-community/eslint-config" : " 0.0.5" ,
48
+ "@types/react" : " ^16.9.17" ,
46
49
"babel-jest" : " ^24.9.0" ,
47
50
"babel-plugin-module-resolver" : " ^3.2.0" ,
48
51
"eslint" : " ^5.16.0" ,
52
55
"prettier" : " ^1.17.0" ,
53
56
"react" : " 16.9.0" ,
54
57
"react-native" : " ^0.61.5" ,
55
- "react-test-renderer" : " 16.8.3"
58
+ "react-test-renderer" : " 16.8.3" ,
59
+ "typescript" : " ^3.7.4"
56
60
},
57
61
"jest" : {
58
62
"preset" : " react-native"
Original file line number Diff line number Diff line change 1203
1203
" @types/istanbul-lib-coverage" " *"
1204
1204
" @types/istanbul-lib-report" " *"
1205
1205
1206
+ " @types/prop-types@* " :
1207
+ version "15.7.3"
1208
+ resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.3.tgz#2ab0d5da2e5815f94b0b9d4b95d1e5f243ab2ca7"
1209
+ integrity sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw==
1210
+
1211
+ " @types/react@^16.9.17 " :
1212
+ version "16.9.17"
1213
+ resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.17.tgz#58f0cc0e9ec2425d1441dd7b623421a867aa253e"
1214
+ integrity sha512-UP27In4fp4sWF5JgyV6pwVPAQM83Fj76JOcg02X5BZcpSu5Wx+fP9RMqc2v0ssBoQIFvD5JdKY41gjJJKmw6Bg==
1215
+ dependencies :
1216
+ " @types/prop-types" " *"
1217
+ csstype "^2.2.0"
1218
+
1206
1219
" @types/stack-utils@^1.0.1 " :
1207
1220
version "1.0.1"
1208
1221
resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-1.0.1.tgz#0a851d3bd96498fa25c33ab7278ed3bd65f06c3e"
@@ -2122,6 +2135,11 @@ cssstyle@^1.0.0:
2122
2135
dependencies :
2123
2136
cssom "0.3.x"
2124
2137
2138
+ csstype@^2.2.0 :
2139
+ version "2.6.8"
2140
+ resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.6.8.tgz#0fb6fc2417ffd2816a418c9336da74d7f07db431"
2141
+ integrity sha512-msVS9qTuMT5zwAGCVm4mxfrZ18BNc6Csd0oJAtiFMZ1FAx1CCvy2+5MDmYoix63LM/6NDbNtodCiGYGmFgO0dA==
2142
+
2125
2143
dashdash@^1.12.0 :
2126
2144
version "1.14.1"
2127
2145
resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0"
@@ -6610,6 +6628,11 @@ typedarray@^0.0.6:
6610
6628
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
6611
6629
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
6612
6630
6631
+ typescript@^3.7.4 :
6632
+ version "3.7.4"
6633
+ resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.4.tgz#1743a5ec5fef6a1fa9f3e4708e33c81c73876c19"
6634
+ integrity sha512-A25xv5XCtarLwXpcDNZzCGvW2D1S3/bACratYBx2sax8PefsFhlYmkQicKHvpYflFS8if4zne5zT5kpJ7pzuvw==
6635
+
6613
6636
ua-parser-js@^0.7.18 :
6614
6637
version "0.7.21"
6615
6638
resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.21.tgz#853cf9ce93f642f67174273cc34565ae6f308777"
You can’t perform that action at this time.
0 commit comments