react-native-navigation的迁移库

ViewMeasurer.java 361B

123456789101112131415
  1. package com.reactnativenavigation.views.utils;
  2. import static android.view.View.MeasureSpec;
  3. public class ViewMeasurer {
  4. public int getMeasuredHeight(int heightMeasureSpec) {
  5. return MeasureSpec.getSize(heightMeasureSpec);
  6. }
  7. public int getMeasuredWidth(int widthMeasureSpec) {
  8. return MeasureSpec.getSize(widthMeasureSpec);
  9. }
  10. }