Remove redundant id and constructor from root svg element.

This commit is contained in:
Mikael Sand
2019-01-08 23:15:30 +02:00
parent 3a6d971ff9
commit fd772cdf11
-7
View File
@@ -12,9 +12,6 @@ import G from "./G";
const RNSVGSvgViewManager = NativeModules.RNSVGSvgViewManager;
// Svg - Root node of all Svg elements
let id = 0;
const styles = StyleSheet.create({
svg: {
backgroundColor: "transparent",
@@ -29,10 +26,6 @@ class Svg extends Shape {
preserveAspectRatio: "xMidYMid meet",
};
constructor() {
super(...arguments);
this.id = ++id;
}
measureInWindow = (...args) => {
this.root.measureInWindow(...args);
};