Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

position: fixed support, want to make a view fullscreen. #264

Open
jayshah123 opened this issue Nov 30, 2016 · 12 comments
Open

position: fixed support, want to make a view fullscreen. #264

jayshah123 opened this issue Nov 30, 2016 · 12 comments

Comments

@jayshah123
Copy link

jayshah123 commented Nov 30, 2016

For support of position: "fixed" in css-layout,

Use case : I have (many) videoView deeply nested in view hierarchy - think list of videos, any one of which I want to make fullscreen.

Current approach (hack) : make videoview as big as screen(fixed values for height width in css style), track videoview's parent layout position and give negative margins to videview to show it properly.

Desired approach : Was wondering if there is a simple way to do this (like position: fixed and specify screen co-ordinates)

Any suggestions or help is welcome

@emilsjolander
Copy link
Contributor

For product questions like this please ask them on stack overflow with the react native tag.

@freakyfriday
Copy link

freakyfriday commented May 12, 2017

Hey guys can we re-open this feature request? I'm also looking for a position: fixed layout property in react native.

According to the docs: An item marked with Position = Absolute is positioned absolutely in regards to its parent. See https://facebook.github.io/yoga/docs/absolute-position/

We really need a way to position an element with regards to the root screen similar to position: fixed in a browser.

@emilsjolander
Copy link
Contributor

I'm fine re-opening as a feature request.

@emilsjolander emilsjolander reopened this May 12, 2017
@freakyfriday
Copy link

Thanks Emil :-) I've mentioned this feature request in a problem I've posted on StackOverflow. Hopefully others that need this will get involved too.

http://stackoverflow.com/questions/43928977/instagram-style-pan-zoom-with-react-native

@6ewis
Copy link

6ewis commented Nov 22, 2017

any update?

@iddan
Copy link

iddan commented Jan 2, 2018

This is an important because currently in RN we have to use a Portal or a Modal to render views out of the positional scope.

@maygjor
Copy link

maygjor commented Jan 2, 2018

Update, please it's really important.

@emilsjolander
Copy link
Contributor

Nothing my team is currently working on. Happy to review pull requests though!

@abdul-qadir
Copy link

any update on this?

@Pines-Cheng
Copy link

hope to this feature too.

@rexhuynh
Copy link

any update so far?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants