List of usage examples for com.facebook.react.uimanager ViewProps BORDER_TOP_RIGHT_RADIUS
String BORDER_TOP_RIGHT_RADIUS
To view the source code for com.facebook.react.uimanager ViewProps BORDER_TOP_RIGHT_RADIUS.
Click Source Link
From source file:com.rnnestedscrollview.ReactNestedScrollViewManager.java
License:MIT License
@ReactPropGroup(names = { ViewProps.BORDER_RADIUS, ViewProps.BORDER_TOP_LEFT_RADIUS, ViewProps.BORDER_TOP_RIGHT_RADIUS, ViewProps.BORDER_BOTTOM_RIGHT_RADIUS, ViewProps.BORDER_BOTTOM_LEFT_RADIUS }, defaultFloat = YogaConstants.UNDEFINED) public void setBorderRadius(ReactNestedScrollView view, int index, float borderRadius) { if (!YogaConstants.isUndefined(borderRadius)) { borderRadius = PixelUtil.toPixelFromDIP(borderRadius); }/*from w w w.j a v a 2s. co m*/ if (index == 0) { view.setBorderRadius(borderRadius); } else { view.setBorderRadius(borderRadius, index - 1); } }