Landscape pop-up but rest of app in portrait mode

0
Hi, my app is based on Atlas native default template. Only portrait mode is set on local build to keep fixed portrait orientation. But 1 pop-up page should be displayed in fixed landscape orientation, including header and all the content. What is the best / simpliest way to do this?
asked
2 answers
0

Hello

 

Maybe you can achieve this result via react native styles. See the link below:

https://reactnative.dev/docs/transforms

 

I used this approach on a page to implement the feature "scan a barcode" in a banking app.

export const ctnRotate = {
    container: {
        transform: [{rotate: '-90deg'}]        
    }
};

which was aplied on the pages' root containter.

 

Below are images showing two texts inside two containers, one of them with the custom style applied.

 

image.png

image.png

answered
0

Hi Vinicius, thanks a bunch. I eventually used same approach to rotate particular elements of the page. I was wondering if Mendix has a feature to rotate whole selected page, where e.g. Header is displayed on the right and Bottom Bar on the left (while holding phone in portrait mode), all correctly rotated.

answered