Skip to content

Show provider content again on Android TV - #45

Merged
Charlie-Carson merged 2 commits into
mainfrom
fix-empty-content-browser
Nov 18, 2026
Merged

Charlie-Carson merged 2 commits into
mainfrom
fix-empty-content-browser

Conversation

@jzongker-churchapps

Copy link
Copy Markdown
Contributor

Since #43 (shipped over the air on Nov 17), every provider's content browser can come up as an empty grid on Android TV: the header shows but no tiles. Reproduced on an Android TV API 36 emulator with Awana and The Bible Project. The browse call returned 2 and 20 items, and React rendered the cells, but nothing was mounted on screen.

Cause: #43 added removeClippedSubviews={false} to the content list, but the loading skeleton list in the same spot keeps Android's default (true). React reuses the skeleton's native list for the real one, so the flag flips from true to false on an existing view, and that drops its children.

Fix: set removeClippedSubviews={false} on the skeleton list too, so the flag never changes. This keeps #43's protection against the "Invalid clipping state" crash.

Testing:

  • On the emulator: removing the prop from the real list made tiles appear; this fix (prop kept on both lists) shows them too. Browsed Awana → Elementary → Patriarchs → Abraham and Lot and streamed the audio and the Find It video.
  • jest: 134 pass. tsc has the same 2 errors as main.

JS only, so the EAS Update workflow ships it over the air on merge.

🤖 Generated with Claude Code

jzongker-churchapps and others added 2 commits November 18, 2026 14:07
#43 set removeClippedSubviews={false} on the content browser list but not
on the loading skeleton list. React reuses the skeleton's native list for
the real one, and flipping the flag on it drops every tile, so every
provider showed an empty grid. Set it on both lists so it never changes.
@Charlie-Carson
Charlie-Carson merged commit 511f263 into main Nov 18, 2026
1 of 2 checks passed
@Charlie-Carson
Charlie-Carson deleted the fix-empty-content-browser branch November 18, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants