-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Arshdeep Singh
authored and
Arshdeep Singh
committed
Jan 5, 2024
1 parent
8f48854
commit 1a33a10
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,47 @@ | ||
# React Native Paper Component Templates | ||
|
||
This Document contains a set of components Templates around various [React Native Paper](https://callstack.github.io/react-native-paper/index.html) components. | ||
|
||
By default, the theming mechanism provided by RNP is very minimal and does not allow us to style components precisely the way we want for Brightlayer UI applications. To circumvent this issue, we create a template that you can use bring them in alignment with Brightlayer UI applications | ||
|
||
These components templates simplify this process so that the end user do not create the component designs to bring them in alignment with Brightlayer UI applications. | ||
|
||
## Component Template | ||
|
||
- ### ProgressBar | ||
|
||
In Progress Bar we have updated the Background of Progress bar to SurfaceContainerHighest to match the design | ||
|
||
<img width='300' alt="ProgressBar" src="./images/progressBar.png"><br/> | ||
|
||
Usage | ||
```tsx | ||
import { ProgressBar } from 'react-native-paper'; | ||
|
||
<ProgressBar | ||
progress={0.5} | ||
style={{ backgroundColor: theme.colors.surfaceContainerHighest }} | ||
/> | ||
``` | ||
|
||
|
||
- ### Snackbar | ||
|
||
In SnackBar we have updated the Background of Snackbar to inverseSurface to match the design | ||
|
||
<img width='300' alt="Snackbar" src="./images/snackbar.png"><br/> | ||
|
||
````tsx | ||
import { Snackbar } from 'react-native-paper'; | ||
<Snackbar | ||
visible={true} | ||
action={{ | ||
label: 'Dismiss', | ||
onPress: (): void => {}, | ||
}} | ||
style={{ backgroundColor: theme.colors.inverseSurface }} | ||
> | ||
Snackbar Text | ||
</Snackbar> | ||
```` | ||
|