Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
hacker17657yWhat's the problem? I'll try to help. If I can't, there's probably many here who can :)
-
al-m26717y@hacker hi!!! I have a link to it on stack overflow I'll get it in a sec. But basically.
I'm using a library that was refusing to even render on android and while I was trolling around I saw that it's literally because there is a "flex: 1" in the styling and without it it works but like. Looks dreadful and stuff and everything is all over the place. So I don't know what to do anymore -
hacker17657y@al-m I recently started learning React Native so forgive me if this solution is too hacky...
I had a similar issue today with a ScrollView which shrunk its children to fit the screen (I didn't want that). And it was happening because of the 'flex: 1' applied to the view. I removed it and set it's height and width to 100% of the screen dimensions using the Dimension API: https://facebook.github.io/react-na...
Let me know if that works. I'm curious because it worked for me, but perhaps doesn't for other use cases... -
hacker17657y@al-m I put it on the wrapping one and removed flex entirely. The children elements, in my case, were given fixed dimensions. I'll post a screen shot of how I did it. Hold up
-
hacker17657y@al-m it works perfectly for me. What other issues?
Hopefully I still helped in some way :)
Related Rants
Anyone good with react-native? I need help cause I'm about to lose my shit 😠not even exaggerating when I say I've cried many times over this.
rant
react-native
flex
android