-
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.
- Loading branch information
1 parent
13392e1
commit 140a127
Showing
6 changed files
with
32 additions
and
3 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
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,11 @@ | ||
import type * as React from 'react' | ||
|
||
/** | ||
* Props to be given to flat color background components. | ||
*/ | ||
export type FlatColorBackgroundProps = React.PropsWithChildren<{ | ||
/** | ||
* Describes how the background component should be sized. | ||
*/ | ||
readonly size: 'fitsContent' | 'fillsContainer' | ||
}> |
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,15 @@ | ||
# `react-native-app-helpers/FlatColorBackgroundProps` | ||
|
||
Props to be given to flat color background components. | ||
|
||
## Usage | ||
|
||
```tsx | ||
import type { FlatColorBackgroundProps } from "react-native-app-helpers"; | ||
import { Text } from "react-native"; | ||
|
||
const example: FlatColorBackgroundProps = { | ||
size: "fillsContainer", | ||
children: <Text>Example Children</Text>, | ||
}; | ||
``` |
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