Skip to content

Commit 925ccfc

Browse files
committed
Remove unneded ViewProps alias
1 parent d70f29b commit 925ccfc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

vnext/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -600,9 +600,6 @@ std::string WindowsTextInputComponentView::DefaultControlType() const noexcept {
600600
void WindowsTextInputComponentView::updateProps(
601601
facebook::react::Props::Shared const &props,
602602
facebook::react::Props::Shared const &oldProps) noexcept {
603-
const auto &oldViewProps = *std::static_pointer_cast<const facebook::react::ViewProps>(m_props);
604-
const auto &newViewProps = *std::static_pointer_cast<const facebook::react::ViewProps>(props);
605-
606603
const auto &oldTextInputProps = *std::static_pointer_cast<const facebook::react::WindowsTextInputProps>(m_props);
607604
const auto &newTextInputProps = *std::static_pointer_cast<const facebook::react::WindowsTextInputProps>(props);
608605

@@ -646,7 +643,7 @@ void WindowsTextInputComponentView::updateProps(
646643
m_needsRedraw = true;
647644
}
648645

649-
if (oldViewProps.backgroundColor != newViewProps.backgroundColor) {
646+
if (oldTextInputProps.backgroundColor != newTextInputProps.backgroundColor) {
650647
m_needsRedraw = true;
651648
}
652649

0 commit comments

Comments
 (0)