OnMeasureBaseline
A method that is annotated with this annotation will be used to compute the baseline of your component. The default baseline of your component if this method is not implemented is the computed height of your component. The baseline is the vertical location of your component to be aligned when using .alignItems(BASELINE). @LayoutSpec
public class MyComponentSpec {
@OnMeasureBaseline
int onMeasureBaseline(ComponentContext c, int width, int height) {
return height / 2;
}
}