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

Flex layout -- missing stretch. #70

Closed
jaygarcia opened this issue Feb 14, 2015 · 11 comments
Closed

Flex layout -- missing stretch. #70

jaygarcia opened this issue Feb 14, 2015 · 11 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@jaygarcia
Copy link
Contributor

Many HTML5 devs have gotten used to the flexibility of the modern CSS3 Flexbox model : http://css-tricks.com/snippets/css/a-guide-to-flexbox/

It seems like the flex layout is started, but not quite complete. Are you guys planning on implementing stretch?

@vjeux
Copy link
Contributor

vjeux commented Feb 14, 2015

Can you give a concrete usecase where you need stretch?

@vjeux
Copy link
Contributor

vjeux commented Feb 14, 2015

We do support stretch actually on alignSelf and alignItems

https://github.com/facebook/css-layout/blob/master/README.md

@jaygarcia
Copy link
Contributor Author

Thanks, but that doesn't work. Say for example, you want to have the outer-most containing view automatically size to the iPhone's dimensions.

alignSelf doesn't seem to work in this case.

Here's the JSX for the top-most view: https://gist.github.com/moduscreate/f9414970d5158da25036
What i'm experiencing: http://www.screencast.com/t/sHOCgEJgqqi

@vjeux
Copy link
Contributor

vjeux commented Feb 16, 2015

Use flex: 1 for stretching in the main direction (column). The naming is confusing but that's from flexbox itself :(

@vjeux vjeux closed this as completed Feb 16, 2015
@jaygarcia
Copy link
Contributor Author

Fantastic. Thank you.

I apologize for the new questions. I"m learning react whilst learning this new iOS bridge.

@vjeux
Copy link
Contributor

vjeux commented Feb 16, 2015

At the contrary, please keep the questions coming :)

@jaygarcia
Copy link
Contributor Author

^--- I cannot tell you how much this means to community members like myself and that this type of attitude will only nurture and help grow the use of this awesome tech. I speak from experience of a once-leading community member in the Sencha community. =)

@vjeux
Copy link
Contributor

vjeux commented Feb 18, 2015

👍

@coderdave
Copy link

@jaygarcia Do you mind sharing the final code to get this layout to work? Thanks.

@jaygarcia
Copy link
Contributor Author

@coderdave do you mean the application itself?

@coderdave
Copy link

@jaygarcia No, mainly just the style code... and maybe the basic components needed that represent the layout.

harrykiselev pushed a commit to harrykiselev/react-native that referenced this issue Aug 5, 2015
…texample

Fix newline appearing in textarea in ChatApp
@facebook facebook locked as resolved and limited conversation to collaborators May 29, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants