Skip to content

Commit 5b8592f

Browse files
Karthik-B-06kodiakhq[bot]
authored andcommitted
chore(example-app): ✨ create Progress Bar component screen with examples
1 parent 69fba26 commit 5b8592f

File tree

4 files changed

+31
-0
lines changed

4 files changed

+31
-0
lines changed

example/src/AppRoot.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
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
};
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "./ProgressScreen";

example/src/modules/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
export * from "./feedback";
12
export * from "./popups";
23
export * from "./primitives";

0 commit comments

Comments
 (0)