mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-16 23:00:20 +08:00
Reviewed By: achen1, AaaChiuuu Differential Revision: D5745093 fbshipit-source-id: 65d85252ab8a0ca38322f49a3d4812380d5228c4
18 lines
455 B
Java
18 lines
455 B
Java
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
package com.facebook.react.uimanager;
|
|
|
|
import android.view.View;
|
|
|
|
/**
|
|
* Interface for a {@link View} subclass that provides the width and height measure specs from its
|
|
* measure pass. This is currently used to re-measure the root view by reusing the specs for yoga
|
|
* layout calculations.
|
|
*/
|
|
public interface MeasureSpecProvider {
|
|
|
|
int getWidthMeasureSpec();
|
|
|
|
int getHeightMeasureSpec();
|
|
}
|