mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-04 23:54:53 +00:00
[android] Remove outdated references to shadow nodes in errors etc.
This commit is contained in:
@@ -36,9 +36,6 @@ import java.util.regex.Pattern;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
/**
|
||||
* Renderable shadow node
|
||||
*/
|
||||
abstract public class RenderableView extends VirtualView {
|
||||
|
||||
RenderableView(ReactContext reactContext) {
|
||||
@@ -355,7 +352,7 @@ abstract public class RenderableView extends VirtualView {
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets up paint according to the props set on a shadow view. Returns {@code true}
|
||||
* Sets up paint according to the props set on a view. Returns {@code true}
|
||||
* if the fill should be drawn, {@code false} if not.
|
||||
*/
|
||||
private boolean setupFillPaint(Paint paint, float opacity) {
|
||||
@@ -370,7 +367,7 @@ abstract public class RenderableView extends VirtualView {
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets up paint according to the props set on a shadow view. Returns {@code true}
|
||||
* Sets up paint according to the props set on a view. Returns {@code true}
|
||||
* if the stroke should be drawn, {@code false} if not.
|
||||
*/
|
||||
private boolean setupStrokePaint(Paint paint, float opacity) {
|
||||
|
||||
@@ -20,7 +20,7 @@ import javax.annotation.Nullable;
|
||||
|
||||
/**
|
||||
* ViewManager for RNSVGSvgView React views. Renders as a {@link SvgView} and handles
|
||||
* invalidating the native view on shadow view updates happening in the underlying tree.
|
||||
* invalidating the native view on view updates happening in the underlying tree.
|
||||
*/
|
||||
class SvgViewManager extends ReactViewManager {
|
||||
|
||||
|
||||
@@ -322,7 +322,7 @@ abstract public class VirtualView extends ViewGroup {
|
||||
} else if (parent instanceof VirtualView) {
|
||||
svgView = ((VirtualView) parent).getSvgView();
|
||||
} else {
|
||||
FLog.e(ReactConstants.TAG, "RNSVG: " + getClass().getName() + " should be descendant of a SvgViewShadow.");
|
||||
FLog.e(ReactConstants.TAG, "RNSVG: " + getClass().getName() + " should be descendant of a SvgView.");
|
||||
}
|
||||
|
||||
return svgView;
|
||||
|
||||
Reference in New Issue
Block a user