Skip to content

Disable Android Image fadeDuration on native html.img - #518

Open
bencripps wants to merge 1 commit into
react:mainfrom
bencripps:fix/disable-img-fade-duration
Open

Disable Android Image fadeDuration on native html.img#518
bencripps wants to merge 1 commit into
react:mainfrom
bencripps:fix/disable-img-fade-duration

Conversation

@bencripps

@bencripps bencripps commented Sep 4, 2026

Copy link
Copy Markdown

Summary

  • Fixes Image fadeDuration property #461 by setting RN Image fadeDuration to 0 on native html.img.
  • Android otherwise fades images in over 300ms by default, which is not a web behavior and cannot be disabled through a web-valid prop.
  • CSS transitions can still animate opacity. compat.native callers can override fadeDuration after spreading nativeProps.

Test plan

  • Added a native unit test asserting html.img passes fadeDuration: 0
  • Updated native image snapshots
  • Maintainer: confirm Android html.img no longer fades in on load

@meta-cla meta-cla Bot added the cla signed label Sep 4, 2026
RN fades images in over 300ms on Android by default, which is not a web
behavior. Force fadeDuration to 0 so html.img matches web; CSS
transitions can still animate opacity.
@bencripps
bencripps force-pushed the fix/disable-img-fade-duration branch 2 times, most recently from 0597295 to 77f742a Compare September 4, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Image fadeDuration property

1 participant