mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-03-19 06:39:44 +01: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:
parent
15b0e33542
commit
03bf058dd7
@ -35,4 +35,8 @@ const styles = StyleSheet.create({
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user