Skip to content

Commit

Permalink
Fix first rendering of transform
Browse files Browse the repository at this point in the history
  • Loading branch information
cpunion committed Jul 1, 2017
1 parent c04bb84 commit fc3979a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Libraries/StyleSheet/extendProperties.web.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import getVendorPropertyName from 'domkit/getVendorPropertyName';
import CSSProperty from 'CSSProperty';
import { convertTransform } from '../Utilties/setNativeProps'

var shorthandProperties = {
margin: true,
Expand Down Expand Up @@ -217,7 +218,7 @@ function extendProperties(style) {
result[property] = value;
}
}

Object.assign(result, convertTransform(result));
return result;
}

Expand Down
1 change: 1 addition & 0 deletions Libraries/Utilties/setNativeProps.web.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,4 @@ function setNativeProps(node, props, component) {
}

module.exports = setNativeProps;
module.exports.convertTransform = convertTransform;

0 comments on commit fc3979a

Please sign in to comment.