mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-07-31 14:30:13 +02:00
Add reference link to React Native ImageBackground component (#5795)
* add reference link to React Native ImageBackground component --------- Co-authored-by: Ruslan Semagin <pixel.365.24@gmail.com> Co-authored-by: dsh <daniel.s.holdsworth@gmail.com> Co-authored-by: Ruslan Semagin <53819609+pixel365@users.noreply.github.com> Co-authored-by: Suman Kisku <sumankisku1@gmail.com>
This commit is contained in:
committed by
Kamran Ahmed
parent
15b0e33542
commit
03bf058dd7
@@ -35,4 +35,8 @@ const styles = StyleSheet.create({
|
|||||||
export default App;
|
export default App;
|
||||||
```
|
```
|
||||||
|
|
||||||
In the above example, `source` prop is used to add the image URL, `style` prop for adding some custom styling, and `resizeMode` to define how the image should stretch to fill the available space. The `Text` component inside the `ImageBackground` is then rendered on top of the image.
|
In the above example, `source` prop is used to add the image URL, `style` prop for adding some custom styling, and `resizeMode` to define how the image should stretch to fill the available space. The `Text` component inside the `ImageBackground` is then rendered on top of the image.
|
||||||
|
|
||||||
|
For more information and details, you can refer to the React Native docs:
|
||||||
|
|
||||||
|
- [Image Background - React Native](https://reactnative.dev/docs/imagebackground)
|
||||||
|
Reference in New Issue
Block a user