File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
packages/core/src/components/Progress/LinearProgress Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
2
import Section , { Container } from "./Section" ;
3
3
import { LinearProgress , Button } from "@draftbit/ui" ;
4
- import { Text } from "react-native" ;
4
+ import { Text , View } from "react-native" ;
5
5
6
6
const ProgressExample : React . FC = ( ) => {
7
7
const [ value , setValue ] = React . useState ( 50 ) ;
@@ -49,6 +49,11 @@ const ProgressExample: React.FC = () => {
49
49
title = "Randomize Progress"
50
50
onPress = { ( ) => setValue ( Math . random ( ) * 101 ) }
51
51
/>
52
+ < Section title = "Centerize content" style = { { } } >
53
+ < View style = { { justifyContent : "center" , alignItems : "center" } } >
54
+ < LinearProgress value = { value } />
55
+ </ View >
56
+ </ Section >
52
57
</ Container >
53
58
) ;
54
59
} ;
Original file line number Diff line number Diff line change 12
12
"scripts" : {
13
13
"postinstall" : " yarn-deduplicate && patch-package" ,
14
14
"example" : " yarn --cwd example" ,
15
+ "example:web" : " yarn example start -c --web" ,
16
+ "example:ios" : " yarn example start -c --ios" ,
17
+ "example:android" : " yarn example start -c --android" ,
15
18
"bootstrap" : " lerna bootstrap" ,
16
19
"crosslink" : " lerna link" ,
17
20
"format" : " prettier --write ." ,
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ export const LinearProgress: React.FC<ValueProgressProps> = ({
96
96
style = { [
97
97
{
98
98
height : maxThickness ,
99
+ width : "100%" ,
99
100
} ,
100
101
style ,
101
102
] }
You can’t perform that action at this time.
0 commit comments