@@ -19,6 +19,7 @@ var RawImage = createComponent('Image', LayerMixin, {
19
19
20
20
layer . type = 'image' ;
21
21
layer . imageUrl = props . src ;
22
+ layer . rotate = props . rotate ;
22
23
} ,
23
24
24
25
mountComponent : function ( rootID , transaction , context ) {
@@ -33,6 +34,7 @@ var RawImage = createComponent('Image', LayerMixin, {
33
34
var prevProps = this . _currentElement . props ;
34
35
var props = nextComponent . props ;
35
36
this . applyLayerProps ( prevProps , props ) ;
37
+ this . applyImageProps ( prevProps , props ) ;
36
38
this . _currentElement = nextComponent ;
37
39
this . node . invalidateLayout ( ) ;
38
40
} ,
@@ -46,7 +48,8 @@ var Image = React.createClass({
46
48
style : React . PropTypes . object ,
47
49
useBackingStore : React . PropTypes . bool ,
48
50
fadeIn : React . PropTypes . bool ,
49
- fadeInDuration : React . PropTypes . number
51
+ fadeInDuration : React . PropTypes . number ,
52
+ rotate : React . PropTypes . number
50
53
} ,
51
54
52
55
getInitialState : function ( ) {
@@ -92,7 +95,7 @@ var Image = React.createClass({
92
95
return (
93
96
React . createElement ( Group , { ref : 'main' , style : style } ,
94
97
React . createElement ( Layer , { ref : 'background' , style : backgroundStyle } ) ,
95
- React . createElement ( RawImage , { ref : 'image' , src : this . props . src , style : imageStyle , useBackingStore : useBackingStore } )
98
+ React . createElement ( RawImage , { ref : 'image' , src : this . props . src , style : imageStyle , useBackingStore : useBackingStore , rotate : this . props . rotate } )
96
99
)
97
100
) ;
98
101
} ,
0 commit comments