react-native-windows icon indicating copy to clipboard operation
react-native-windows copied to clipboard

dynamic_cast throws error

Open anupriya13 opened this issue 8 months ago • 1 comments

Problem Description

dynamic_cast throws error in CullingContext.cpp and sliceChildShadowNodeViewPairs.cpp. Changes dynamic_cast to static_cast

Link to the integration where the error originated

https://github.com/microsoft/react-native-windows/pull/14662

Link to commit

https://github.com/facebook/react-native/pull/49307

Forked files

No response

Upstream PR

No response

Build Configuration

None

anupriya13 avatar May 15 '25 06:05 anupriya13

This looks like we may need to enable dynamic_casts (RTTI) at a project level (and take the binary size hit).

https://github.com/microsoft/react-native-windows/blob/1e8e1a3188b55b11723e19f0059f793f3038ed7a/vnext/PropertySheets/React.Cpp.props#L139

jonthysell avatar May 22 '25 16:05 jonthysell