mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-09 17:30:58 +00:00
Remove redundant id and constructor from root svg element.
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user