[Vega 0.24] View shown after opacity: 0 stays blank when a KeplerVideoSurfaceView mounts inside it in the same update

:backhand_index_pointing_right: Bug Description

1. Summary

A view that is first rendered hidden (opacity: 0, or display: 'none') stays invisible on screen after
React re-renders it as visible. JS logs confirm the new style is passed to the view (no opacity, or an
explicit opacity: 1), but nothing appears. Not even the view’s own backgroundColor is drawn.

In our app this is the “primary program” tile in a carousel: a Pressable (432×243) that is hidden
while its carousel is not focused and shown once the carousel gets focus. After the carousel gets
focus, the tile stays blank.

Impact: the main tile of the home screen carousel never shows up, so the user cannot see what they are
about to play.

App Name: DirecTV
App Link on Amazon Appstore: <fill in>

Bug Severity

  • Impacts operation of app
  • Blocks current development
  • Improvement suggestion
  • Issue with documentation
  • Other

2. Steps to Reproduce

The bug only reproduces in our DTV app (a standalone Pressable that toggles opacity: 0 → visible works correctly, so the trigger is something else that happens in the same update.

  1. Launch the app and open the home screen.
  2. Look at the primary program tile: it stays transparent!!! (BUG)

3. Observed Behavior

JS logs, before and after the carousel gets focus (the Pressable style):

{ isCarouselFocused: false }
{ height: 243, width: 432, borderRadius: 3, backgroundColor: 'rgba(255, 255, 255, 0.12)', opacity: 0 }

{ isCarouselFocused: true }
{ height: 243, width: 432, borderRadius: 3, backgroundColor: 'rgba(255, 255, 255, 0.12)' }

The view stays invisible after the second render. Not even its background color is drawn.

4. Expected Behavior

Once opacity: 0 is removed (or opacity: 1 is set, or display: 'none' is removed), the view is drawn
with its background color and children, just like a view that was mounted visible.

4.a Possible Root Cause & Temporary Workaround

What we verified:
- The JS side passes the correct style in each render (logs in section 3).
- Setting an explicit opacity: 1 instead of removing the key does not help, so this is not just
  "removed prop is not reset to its default".
- Hiding with display: 'none' instead of opacity: 0 does not help either.
- Remounting the view when the state changes (key={isCarouselFocused}): confirm: helps!
- A standalone Pressable toggling opacity: 0 -> visible works correctly, so the style change on its
  own is not enough to trigger the bug.

5. Logs or crash report

Not a crash. Device logs attached: <attach device log capture>. They show the re-render with the
visible style and the call to setSurfaceHandle() for the carousel surface.

6. Environment

  • SDK Version: 0.24.12112
  • React Native Version: RN0.83
  • App State: Foreground
  • Device: device
  • OS Information:
NAME="OS"
OE_VERSION="4.0.0"
OS_MAJOR_VERSION="2"
OS_MINOR_VERSION="0"
RELEASE_ID="26"
OS_VERSION="2.0"
BRANCH_CODE="TV Ship"
BUILD_DESC="OS 2.0 (TV Ship/515)"
BUILD_FINGERPRINT="4.0.512374.0(3072cab629675a74)/515N:user/release-keys"
BUILD_VARIANT="user"
BUILD_TAGS="release-keys"
BUILD_DATE="Fri Oct 02 22:31:28 UTC 2026"
BUILD_TIMESTAMP="1790980288"
VERSION_NUMBER="2602000051520"

7. Example Code Snippet / Screenshots / Screengrabs

A minimal snippet that only toggles the style does not reproduce the bug. Simplified structure of
the tile in our app, where it does reproduce:

// isCarouselFocused flips from false to true
<Pressable
  style={[
    { width: 432, height: 243, borderRadius: 3, backgroundColor: 'rgba(255, 255, 255, 0.12)' },
    !isCarouselFocused && { opacity: 0 },
  ]}
>
   // content
</Pressable>

Screen recording: (Can’t attach the video)


:backhand_index_pointing_right: Playback Issues

N/A (unless the bug only reproduces with the KeplerVideoSurfaceView, see 4.a)

:backhand_index_pointing_right: Additional Context

The bug appeared while upgrading our app to Vega SDK 0.24. The same screen worked before the upgrade. (prev. ver. 0.22.5850)

Hi @DVD,

Thank you for the detailed bug report on the opacity/KeplerVideoSurfaceView rendering issue. The JS logs, the key={isCarouselFocused} finding, and the note that a standalone opacity toggle doesn’t reproduce it are all really helpful and point us at the right place.

Since this started on your 0.22 → 0.24 upgrade and the same screen worked before, this may be related to a change in 0.24. Our team is investigating this issue and will provide an update as soon as we have more information. In the meantime, could you share the device log capture you mentioned (the one showing the re-render with the visible style and the setSurfaceHandle() call)?

Reference docs:

Thanks for helping us improve the Vega platform.

Warm regards,
Aishwarya

Found an issue on our end!

close issue