11
A-C-E
6y

> be me
> be developing a react native app
>realize the iPhone X notch is clipping your content on the first/home screen of the app
>google says: simple fix
>find a built-in react native thing to add safe area padding
> refresh the app
> ohno.png
> the other screens with navigation bars already have built in padding
> TOOMUCHPADDING.jpeg
> remove safe area thingy
> finds a clever, not particularly hacky way to pad the home screen without showing the header bar by setting its height to 0 and the color to match the content background
> more-problems.app
> there’s a small 1–pixel light colored line separating the header from the content clearly breaking the otherwise continuous single color background
> google.sh
> wtf.txt
> stackoverflow.html
> no responses except something I’d already done
> keep experimenting
> tries basically everything to figure out where that line is coming from
>sets borders to thicccc and bright red
>no bottom border? Ok that’s not it
>opacity?
>forgetaboutit.mov
>try shifting the header position around by a few pixels? Maybe it’s misaligned with the white parent layer underneath?
> nope.jpg
>it’s past bedtime
>Sleep.jpg
>thenextday(today).zip
> what about the content? Is that misaligned?
> nope2.jpg
>Maybe its an iOS feature not a react thing?
> make a test Xcode project, completely native to test
> negative.dng (pun intended)
> more-furious-googling.mp3
> find a native iOS stackOverflow question with the same issue (1px line)
> realize your Xcode test wasn’t done properly.
>atleastimmakingprogress.iso
> start looking into the SO post
>it’s native so I have to find out how to do it in react-native
>invent a bunch of style parameters that don’t exist in the documentation to see if there’s an undocumented thing
>loadsaloadsaerrors.log
>googles for a react native version of the iOS only SO post
> somethingpromising.tar.gz
> *tries it*
> “Haha nope” -my code
> whataboutthisotherthing.bin
> KENSISHSBUCNEGWISBVSIDNRVSIDNFIRJRBDKFNFIDJFIFKFNR
> HOLY FUCK
> IT WORKED
> AFTER TWO FUCKING DAYS OF SHITTERY AND SHENANIGANS
>AND MANY STACKOVERFLOW EDITS TO A NOW VERY MESSY POST
>THEREISNOMOREBORDER(final).zip
>*screams of relief*

Comments
  • 4
    Here’s the SO link for anyone wanting to see my adventure as documented there: https://stackoverflow.com/questions...
  • 3
    I would love to see the irl equivalent to more-furious-googling.mp3 and the other files...
  • 0
    This is some good quaility stackoverflow post, good job dude
  • 1
    @devTea yeah, I’ve been on SO for a while, I have the protocol for writing posts pretty well established at this point. Although to be honest I did add the summary and answer after this all happened. I feel like the rest of it is just a pretty incoherent jumbled mess of me just tacking on new discoveries of stuff.
  • 1
    @cave most of those file names were made to be funny or as puns. However for that one I was just imagining a soundtrack of angry/aggressive rapid typing and clicking
  • 1
    @devTea i feel like the amount of SO questions I read (whether I’m looking for them or being distracted by them) has probably helped. Maybe someone should write a stackOverflow survival guide
  • 0
    @A-C-E maybe you should lol
Add Comment