File tree Expand file tree Collapse file tree 4 files changed +31
-0
lines changed
Expand file tree Collapse file tree 4 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 88 ButtonScreen ,
99 CheckboxScreen ,
1010 MeterComponentScreen ,
11+ ProgressScreen ,
1112 SpinnerScreen ,
1213 TagScreen ,
1314 TooltipScreen ,
@@ -63,6 +64,11 @@ const AppRoot = () => {
6364 name = "TagScreen"
6465 component = { TagScreen }
6566 />
67+ < Drawer . Screen
68+ options = { { title : "ProgressScreen" } }
69+ name = "ProgressScreen"
70+ component = { ProgressScreen }
71+ />
6672 </ Drawer . Navigator >
6773 ) ;
6874} ;
Original file line number Diff line number Diff line change 1+ import React from "react" ;
2+ import { Box , ProgressBar , useTheme } from "@adaptui/react-native-tailwind" ;
3+
4+ export const ProgressScreen = ( ) => {
5+ const tailwind = useTheme ( ) ;
6+ return (
7+ < Box
8+ style = { tailwind . style (
9+ "flex-1 justify-center items-center px-2 bg-white-900" ,
10+ ) }
11+ >
12+ { /* Base Theme Progress Bar */ }
13+ < ProgressBar style = { tailwind . style ( "my-2" ) } />
14+ { /* Primary Progress Bar */ }
15+ < ProgressBar themeColor = "primary" />
16+ { /* Customising Progress Bar */ }
17+ < ProgressBar
18+ style = { tailwind . style ( "my-2" ) }
19+ trackStyle = { tailwind . style ( "bg-green-600" ) }
20+ />
21+ </ Box >
22+ ) ;
23+ } ;
Original file line number Diff line number Diff line change 1+ export * from "./ProgressScreen" ;
Original file line number Diff line number Diff line change 1+ export * from "./feedback" ;
12export * from "./popups" ;
23export * from "./primitives" ;
You can’t perform that action at this time.
0 commit comments