mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Send ReactNative C++ State to Android measure API
Summary: The `measure` API receives LocalData and Props, it should also receive State. This will also be used in future diffs. Reviewed By: mdvacca Differential Revision: D15325182 fbshipit-source-id: 6cb46dd603ce7d46673def16f0ddb517e2cf0c4f
This commit is contained in:
committed by
Facebook Github Bot
parent
c35d1af6fa
commit
04782ff57a
@@ -280,6 +280,7 @@ public class FabricUIManager implements UIManager, LifecycleEventListener {
|
||||
String componentName,
|
||||
ReadableMap localData,
|
||||
ReadableMap props,
|
||||
ReadableMap state,
|
||||
float minWidth,
|
||||
float maxWidth,
|
||||
float minHeight,
|
||||
@@ -290,6 +291,7 @@ public class FabricUIManager implements UIManager, LifecycleEventListener {
|
||||
componentName,
|
||||
localData,
|
||||
props,
|
||||
state,
|
||||
getYogaSize(minWidth, maxWidth),
|
||||
getYogaMeasureMode(minWidth, maxWidth),
|
||||
getYogaSize(minHeight, maxHeight),
|
||||
|
||||
@@ -336,6 +336,7 @@ public class MountingManager {
|
||||
String componentName,
|
||||
ReadableMap localData,
|
||||
ReadableMap props,
|
||||
ReadableMap state,
|
||||
float width,
|
||||
YogaMeasureMode widthMode,
|
||||
float height,
|
||||
@@ -343,7 +344,7 @@ public class MountingManager {
|
||||
|
||||
return mViewManagerRegistry
|
||||
.get(componentName)
|
||||
.measure(context, localData, props, width, widthMode, height, heightMode);
|
||||
.measure(context, localData, props, state, width, widthMode, height, heightMode);
|
||||
}
|
||||
|
||||
@AnyThread
|
||||
|
||||
@@ -245,6 +245,7 @@ public abstract class ViewManager<T extends View, C extends ReactShadowNode>
|
||||
Context context,
|
||||
ReadableMap localData,
|
||||
ReadableMap props,
|
||||
ReadableMap state,
|
||||
float width,
|
||||
YogaMeasureMode widthMode,
|
||||
float height,
|
||||
|
||||
@@ -200,6 +200,7 @@ public class ReactSliderManager extends SimpleViewManager<ReactSlider> {
|
||||
Context context,
|
||||
ReadableMap localData,
|
||||
ReadableMap props,
|
||||
ReadableMap state,
|
||||
float width,
|
||||
YogaMeasureMode widthMode,
|
||||
float height,
|
||||
|
||||
@@ -116,6 +116,7 @@ public class ReactTextViewManager
|
||||
Context context,
|
||||
ReadableMap localData,
|
||||
ReadableMap props,
|
||||
ReadableMap state,
|
||||
float width,
|
||||
YogaMeasureMode widthMode,
|
||||
float height,
|
||||
|
||||
Reference in New Issue
Block a user