-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(example-app): ✨ create Progress Bar component screen with examples
- Loading branch information
1 parent
69fba26
commit 5b8592f
Showing
4 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "./ProgressScreen"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from "./feedback"; | ||
export * from "./popups"; | ||
export * from "./primitives"; |