@@ -19,6 +19,7 @@ var RawImage = createComponent('Image', LayerMixin, {
1919
2020 layer . type = 'image' ;
2121 layer . imageUrl = props . src ;
22+ layer . rotate = props . rotate ;
2223 } ,
2324
2425 mountComponent : function ( rootID , transaction , context ) {
@@ -33,6 +34,7 @@ var RawImage = createComponent('Image', LayerMixin, {
3334 var prevProps = this . _currentElement . props ;
3435 var props = nextComponent . props ;
3536 this . applyLayerProps ( prevProps , props ) ;
37+ this . applyImageProps ( prevProps , props ) ;
3638 this . _currentElement = nextComponent ;
3739 this . node . invalidateLayout ( ) ;
3840 } ,
@@ -46,7 +48,8 @@ var Image = React.createClass({
4648 style : React . PropTypes . object ,
4749 useBackingStore : React . PropTypes . bool ,
4850 fadeIn : React . PropTypes . bool ,
49- fadeInDuration : React . PropTypes . number
51+ fadeInDuration : React . PropTypes . number ,
52+ rotate : React . PropTypes . number
5053 } ,
5154
5255 getInitialState : function ( ) {
@@ -92,7 +95,7 @@ var Image = React.createClass({
9295 return (
9396 React . createElement ( Group , { ref : 'main' , style : style } ,
9497 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 } )
9699 )
97100 ) ;
98101 } ,
0 commit comments