mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Replaced abort with Default value (#50764)
Summary: Fixes https://github.com/facebook/react-native/issues/50740 ## Changelog: [INTERNAL] - App Crash on wrong prop type Pull Request resolved: https://github.com/facebook/react-native/pull/50764 Test Plan: Tested with wrong prop on RN Tester Reviewed By: cipolleschi Differential Revision: D73130916 Pulled By: NickGerleman fbshipit-source-id: 21ffc242e6398509584baf27cf3fb98cbaf2582d
This commit is contained in:
committed by
Facebook GitHub Bot
parent
986bcdbbfb
commit
4fa57f98da
+5
-5
@@ -34,7 +34,7 @@ inline void fromRawValue(
|
||||
result = AutocapitalizationType::Characters;
|
||||
return;
|
||||
}
|
||||
abort();
|
||||
result = AutocapitalizationType::None;
|
||||
}
|
||||
|
||||
inline void fromRawValue(
|
||||
@@ -54,7 +54,7 @@ inline void fromRawValue(
|
||||
result = KeyboardAppearance::Dark;
|
||||
return;
|
||||
}
|
||||
abort();
|
||||
result = KeyboardAppearance::Default;
|
||||
}
|
||||
|
||||
inline void fromRawValue(
|
||||
@@ -122,7 +122,7 @@ inline void fromRawValue(
|
||||
result = ReturnKeyType::Continue;
|
||||
return;
|
||||
}
|
||||
abort();
|
||||
result = ReturnKeyType::Default;
|
||||
}
|
||||
|
||||
inline void fromRawValue(
|
||||
@@ -146,7 +146,7 @@ inline void fromRawValue(
|
||||
result = TextInputAccessoryVisibilityMode::Always;
|
||||
return;
|
||||
}
|
||||
abort();
|
||||
result = TextInputAccessoryVisibilityMode::Never;
|
||||
}
|
||||
|
||||
inline void fromRawValue(
|
||||
@@ -214,7 +214,7 @@ inline void fromRawValue(
|
||||
result = KeyboardType::VisiblePassword;
|
||||
return;
|
||||
}
|
||||
abort();
|
||||
result = KeyboardType::Default;
|
||||
}
|
||||
|
||||
} // namespace facebook::react
|
||||
|
||||
Reference in New Issue
Block a user