-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #128 from GeekyAnts/feat/aspect-ratio-docs
Feat AspectRatio docs
- Loading branch information
Showing
4 changed files
with
60 additions
and
78 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
id: aspectRatio | ||
title: AspectRatio | ||
--- | ||
|
||
Aspect ratio controls the size of the undefined dimension of a node or child component. You can refer [mozilla.org](https://developer.mozilla.org/en-US/docs/Web/CSS/aspect-ratio) for more details. | ||
|
||
## Import | ||
|
||
```jsx | ||
import { AspectRatio } from 'native-base'; | ||
``` | ||
|
||
## Example | ||
|
||
### Basic | ||
|
||
```ComponentSnackPlayer path=components,composites,AspectRatio,Basic.tsx | ||
|
||
``` | ||
|
||
### Embed Image | ||
|
||
```ComponentSnackPlayer path=components,composites,AspectRatio,EmbedImage.tsx | ||
|
||
``` | ||
|
||
## Props | ||
|
||
```ComponentPropTable path=composites,AspectRatio,index.tsx | ||
|
||
``` |
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 was deleted.
Oops, something went wrong.