hackfix for android splashscreen on api <= 25 (white screen) #2394
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See: https://bsky.app/profile/sndtrkng.bsky.social/post/3khr3vnm5cm2m
I ran into this while testing a different PR and marked it up as an emulator issue, but it doesn't seem to be. It actually looks like some sort of issue with
MaskedView
. On platform versions <= 25, themaskElement
doesn't seem to work at all. I suspect it is something to do with this: https://github.com/react-native-masked-view/masked-view#androidrenderingmodeSetting that prop to
software
doesn't help though. I don't think there's a very large number of people on <= 25 so probably this isn't affecting too many users, but there are some. Maybe you can find a better fix 🤷♀️Of note though, it doesn't matter what you set as the mask element. An empty
<View />
will cause the issue, so it might not be an animation issue at all. There might be some more info in that repo that could help to resolve it, unsure.Feel free to merge or not, just wanted to point out the actual problem since I was at first thinking the animation itself needed to be debugged and wasted about 15 minutes trying that.
I'm filing this one under: "what the fuck android, why do you even exist."