mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fabric: Making YogaStylableProps.yogaStyle protected
Summary: `YogaStylableProps.yogaStyle` is designed to be consumed by Yoga only. Making it `protected` allows us to avoid confusion and misuse of this props. Reviewed By: JoshuaGross Differential Revision: D15296474 fbshipit-source-id: cf9e416afee99fb426d72765557b34d303a63dbe
This commit is contained in:
committed by
Facebook Github Bot
parent
16499c1086
commit
184073813e
@@ -161,7 +161,7 @@ local_ref<JString> getPlatformComponentName(const ShadowView& shadowView) {
|
||||
std::dynamic_pointer_cast<const ScrollViewProps>(shadowView.props);
|
||||
|
||||
if (newViewProps &&
|
||||
newViewProps->yogaStyle.flexDirection() == YGFlexDirectionRow) {
|
||||
newViewProps->getProbablyMoreHorizontalThanVertical_DEPRECATED()) {
|
||||
componentName = make_jstring("AndroidHorizontalScrollView");
|
||||
} else {
|
||||
componentName = make_jstring(shadowView.componentName);
|
||||
|
||||
Reference in New Issue
Block a user