Skip to content

Commit

Permalink
chore(example-app): ✨ create Progress Bar component screen with examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Karthik-B-06 authored and kodiakhq[bot] committed Jun 16, 2022
1 parent 69fba26 commit 5b8592f
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
6 changes: 6 additions & 0 deletions example/src/AppRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
ButtonScreen,
CheckboxScreen,
MeterComponentScreen,
ProgressScreen,
SpinnerScreen,
TagScreen,
TooltipScreen,
Expand Down Expand Up @@ -63,6 +64,11 @@ const AppRoot = () => {
name="TagScreen"
component={TagScreen}
/>
<Drawer.Screen
options={{ title: "ProgressScreen" }}
name="ProgressScreen"
component={ProgressScreen}
/>
</Drawer.Navigator>
);
};
Expand Down
23 changes: 23 additions & 0 deletions example/src/modules/feedback/ProgressScreen.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import React from "react";
import { Box, ProgressBar, useTheme } from "@adaptui/react-native-tailwind";

export const ProgressScreen = () => {
const tailwind = useTheme();
return (
<Box
style={tailwind.style(
"flex-1 justify-center items-center px-2 bg-white-900",
)}
>
{/* Base Theme Progress Bar */}
<ProgressBar style={tailwind.style("my-2")} />
{/* Primary Progress Bar */}
<ProgressBar themeColor="primary" />
{/* Customising Progress Bar */}
<ProgressBar
style={tailwind.style("my-2")}
trackStyle={tailwind.style("bg-green-600")}
/>
</Box>
);
};
1 change: 1 addition & 0 deletions example/src/modules/feedback/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./ProgressScreen";
1 change: 1 addition & 0 deletions example/src/modules/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from "./feedback";
export * from "./popups";
export * from "./primitives";

0 comments on commit 5b8592f

Please sign in to comment.