File tree 12 files changed +11
-44
lines changed
12 files changed +11
-44
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,6 @@ export default class extends Shape {
21
21
r : 0
22
22
} ;
23
23
24
- setNativeProps = ( ...args ) => {
25
- this . root . setNativeProps ( ...args ) ;
26
- } ;
27
-
28
24
render ( ) {
29
25
let props = this . props ;
30
26
return < RNSVGCircle
Original file line number Diff line number Diff line change @@ -23,10 +23,6 @@ export default class extends Shape{
23
23
ry : 0
24
24
} ;
25
25
26
- setNativeProps = ( ...args ) => {
27
- this . root . setNativeProps ( ...args ) ;
28
- } ;
29
-
30
26
render ( ) {
31
27
let props = this . props ;
32
28
Original file line number Diff line number Diff line change @@ -10,10 +10,6 @@ export default class extends Shape{
10
10
11
11
static propTypes = pathProps ;
12
12
13
- setNativeProps = ( ...args ) => {
14
- this . root . setNativeProps ( ...args ) ;
15
- } ;
16
-
17
13
render ( ) {
18
14
let { props} = this ;
19
15
Original file line number Diff line number Diff line change @@ -31,10 +31,6 @@ export default class extends Shape {
31
31
preserveAspectRatio : 'xMidYMid meet'
32
32
} ;
33
33
34
- setNativeProps = ( ...args ) => {
35
- this . root . setNativeProps ( ...args ) ;
36
- } ;
37
-
38
34
render ( ) {
39
35
let { props} = this ;
40
36
let modes = props . preserveAspectRatio . trim ( ) . split ( spacesRegExp ) ;
Original file line number Diff line number Diff line change @@ -23,10 +23,6 @@ export default class extends Shape {
23
23
y2 : 0
24
24
} ;
25
25
26
- setNativeProps = ( ...args ) => {
27
- this . root . setNativeProps ( ...args ) ;
28
- } ;
29
-
30
26
render ( ) {
31
27
let props = this . props ;
32
28
return < RNSVGLine
Original file line number Diff line number Diff line change @@ -13,10 +13,6 @@ export default class extends Shape {
13
13
d : PropTypes . string . isRequired
14
14
} ;
15
15
16
- setNativeProps = ( ...args ) => {
17
- this . root . setNativeProps ( ...args ) ;
18
- } ;
19
-
20
16
render ( ) {
21
17
let props = this . props ;
22
18
Original file line number Diff line number Diff line change @@ -14,10 +14,6 @@ export default class extends Component{
14
14
points : ''
15
15
} ;
16
16
17
- setNativeProps = ( ...args ) => {
18
- this . root . getNativeElement ( ) . setNativeProps ( ...args ) ;
19
- } ;
20
-
21
17
render ( ) {
22
18
let points = this . props . points ;
23
19
if ( Array . isArray ( points ) ) {
Original file line number Diff line number Diff line change @@ -28,10 +28,6 @@ export default class extends Shape {
28
28
ry : 0
29
29
} ;
30
30
31
- setNativeProps = ( ...args ) => {
32
- this . root . setNativeProps ( ...args ) ;
33
- } ;
34
-
35
31
render ( ) {
36
32
let props = this . props ;
37
33
Original file line number Diff line number Diff line change 1
1
import { Component } from 'react' ;
2
2
import SvgTouchableMixin from '../lib/SvgTouchableMixin' ;
3
+ import extractProps from '../lib/extract/extractProps' ;
3
4
import _ from 'lodash' ;
4
5
5
6
class Shape extends Component {
@@ -10,6 +11,16 @@ class Shape extends Component {
10
11
} ) ;
11
12
this . state = this . touchableGetInitialState ( ) ;
12
13
}
14
+
15
+ setNativeProps = ( args ) => {
16
+ var extracted = extractProps ( args , this )
17
+ var toSet = { }
18
+ for ( var key in args ) {
19
+ toSet [ key ] = extracted [ key ]
20
+ }
21
+ this . root . setNativeProps ( toSet ) ;
22
+ } ;
23
+
13
24
}
14
25
15
26
export default Shape ;
Original file line number Diff line number Diff line change @@ -34,10 +34,6 @@ export default class extends Shape {
34
34
} ;
35
35
} ;
36
36
37
- setNativeProps = ( ...args ) => {
38
- this . root . setNativeProps ( ...args ) ;
39
- } ;
40
-
41
37
render ( ) {
42
38
let props = this . props ;
43
39
return < RNSVGTSpan
Original file line number Diff line number Diff line change @@ -33,10 +33,6 @@ export default class extends Shape {
33
33
} ;
34
34
} ;
35
35
36
- setNativeProps = ( ...args ) => {
37
- this . root . setNativeProps ( ...args ) ;
38
- } ;
39
-
40
36
render ( ) {
41
37
const props = this . props ;
42
38
Original file line number Diff line number Diff line change @@ -16,10 +16,6 @@ export default class extends Shape {
16
16
...pathProps
17
17
} ;
18
18
19
- setNativeProps = ( ...args ) => {
20
- this . root . setNativeProps ( ...args ) ;
21
- } ;
22
-
23
19
render ( ) {
24
20
const { props} = this ;
25
21
// match "url(#pattern)"
You can’t perform that action at this time.
0 commit comments