Mendix React Native Background Image Style - Mendix Forum

Mendix React Native Background Image Style

0

How to add the Background Image in custom JS Mendix React Native as well Gradiant Background in native js

asked
2 answers
0

To use an image as a background, you should use an mendix image widget. You can do it in 2 ways:

  • Add custom styles to the image widget where you use `position: absolute` to position the image behind the other content.
    Example:
    export const customImage = {
        container: {
            position: 'absolute',
        },
    };

     
  • Place all content on the page (except for the image) inside a container, and add `position: absolute` to that container to position it in front of the image.
    Example:
    export const customContainer = {
        container: {
            position: 'absolute',
        },
    };

     

Resources:

 

 

answered
0

Have a look at the Style Your Mendix Native App documentation

https://docs.mendix.com/howto/mobile/how-to-use-native-styling  and search for related forum posts like

https://forum.mendixcloud.com/link/questions/95838 this one

answered