react-figma
Advanced tools
Comparing version 0.1.10 to 0.1.11
@@ -38,3 +38,3 @@ "use strict"; | ||
var loadedFont = useFontName_1.useFontName(textProps.fontName || { family: 'Roboto', style: 'Regular' }); | ||
var yogaProps = useYogaLayout_1.useYogaLayout(__assign({ nodeRef: nodeRef }, textProps)); | ||
var yogaProps = useYogaLayout_1.useYogaLayout(__assign({ nodeRef: nodeRef }, textProps, { loadedFont: loadedFont })); | ||
useOnLayoutHandler_1.useOnLayoutHandler(yogaProps, props); | ||
@@ -41,0 +41,0 @@ return (React.createElement("text", __assign({}, textProps, yogaProps, { hasDefinedWidth: hasDefinedWidth, loadedFont: loadedFont, innerRef: nodeRef }))); |
{ | ||
"name": "react-figma", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"description": "Render React components to Figma", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -18,3 +18,3 @@ # React Figma | ||
<p align="center"><img src="./demo.gif" width="800"></p> | ||
<p align="center"><img src="https://user-images.githubusercontent.com/1270648/89524327-09365c80-d7ed-11ea-9cb1-08f6fd56a350.gif" width="800"></p> | ||
@@ -21,0 +21,0 @@ Example of code: |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
331630