forked from expo/expo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix docs (wrong formatting, RN v0.57 update) (expo#3273)
* Handle specific code blocks in flatlist and picker properly * Run `npm run import-react-native-docs` * Update react-native-website submodule * Copy RN docs from unversioned (updated to v0.57) to v31 * Fixed layoutanimation compilation
- Loading branch information
Showing
63 changed files
with
756 additions
and
441 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
Submodule react-native-website
updated
293 files
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
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
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
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,58 @@ | ||
--- | ||
id: imagebackground | ||
title: ImageBackground | ||
--- | ||
|
||
A common feature request from developers familiar with the web is `background-image`. To handle this use case, you can use the `<ImageBackground>` component, which has the same props as `<Image>`, and add whatever children to it you would like to layer on top of it. | ||
|
||
You might not want to use `<ImageBackground>` in some cases, since the implementation is very simple. Refer to `<ImageBackground>`'s [source code](https://github.com/facebook/react-native/blob/master/Libraries/Image/ImageBackground.js) for more insight, and create your own custom component when needed. | ||
|
||
Note that you must specify some width and height style attributes. | ||
|
||
## Example | ||
|
||
|
||
```javascript | ||
|
||
return ( | ||
<ImageBackground source={...} style={{width: '100%', height: '100%'}}> | ||
<Text>Inside</Text> | ||
</ImageBackground> | ||
); | ||
|
||
``` | ||
|
||
|
||
### Props | ||
|
||
* [`Image` props...](image.md#props) | ||
* [`style`](imagebackground.md#style) | ||
* [`imageStyle`](imagebackground.md#imageStyle) | ||
* [`imageRef`](imagebackground.md#imageRef) | ||
|
||
--- | ||
|
||
# Reference | ||
|
||
## Props | ||
|
||
### `style` | ||
|
||
| Type | Required | | ||
| ---------------------------------- | -------- | | ||
| [view styles](view-style-props.md) | No | | ||
|
||
### `imageStyle` | ||
|
||
| Type | Required | | ||
| ------------------------------------ | -------- | | ||
| [image styles](image-style-props.md) | No | | ||
|
||
### `imageRef` | ||
|
||
Allows to set a reference to the inner `Image` component | ||
|
||
| Type | Required | | ||
| ----------------------------------------------------- | -------- | | ||
| [Ref](https://reactjs.org/docs/refs-and-the-dom.html) | No | | ||
|
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
Oops, something went wrong.