A framework for building native applications using React
Add codegen for EnumType diffing (#52241)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52241 Add support for converting string and int32 enum types to `folly::dynamic` and generating the correct property diffing for it conditionally adding the prop value to the prop diff result. This diff updates the template to convert the enum back to the original string representation provided from the JS side based on the current generated C++ enum value. The string enum re-uses the existing `toString` conversion. The number enum generates the switch-case mapping required to map back the C++ enum value to the original value assigned to it. Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D77234070 fbshipit-source-id: 8c669d5b2e21bd6022c6ba36149465495e4d4bf3
N
Nick Lefever committed
a164874b1a6aa7c28839d028c29c9da08e181b5e
Parent: 0031377
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
on 6/26/2025, 1:28:22 AM