react-native-windows
react-native-windows copied to clipboard
Use `IsNativeControlWithSelfLayout` in ReplaceView
Since we strictly speaking don't need to reset the self measure func when swapping out a native view, we can just use the IsNativeControlWithSelfLayout check. This internally checks for the a non-null measure function, but may future proof this case if we add additional logic to verify if a node uses self-layout.