A framework for building native applications using React
Simplify hasNativeModule boolean ternary (#55490)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55490 Changelog: [Internal] Simplified a redundant boolean ternary expression in CatalystInstanceImpl.hasNativeModule(). The expression `condition ? true : fallback` is equivalent to `condition || fallback`. This change improves code readability without changing behavior. Reviewed By: cortinico Differential Revision: D92836584 fbshipit-source-id: 2946c779e73c06554e04c1df75ddccc5f9d048ff
F
Fabrizio Cucci committed
da1ef0d92593ea37ef5844b8407eb5a5733808b8
Parent: cb24531
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com>
on 2/10/2026, 6:16:02 PM