react-native-windows
react-native-windows copied to clipboard
dynamic_cast throws error
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
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