| -------------------------------------------------------------------------------------------------
| Reporting a bug or issue
| -------------------------------------------------------------------------------------------------
Hi, i'm trying to use the textDecoration property to set underline to a text contained in a button.
The button is made using a <Text /> element with the appropriate styles. First I tried to add the property to the root like this <Text style={{ textDecoration: 'underline' }}>some text</Text> but it didn't work. Proceeded to separate the styles and try to style directly the children but no luck.
I also couldn't see the support of the property in here:
http://airbnb.io/react-sketchapp/docs/styling.html
Expected behavior:

Observed behavior:

How to reproduce:
const Button = ({ text, style }) => {
return (
<Text
style={style}
name="container"
>
<Text style={{ textDecoration: 'underline'}}>
{text}
</Text>
</Text>
);
};
Sketch version:
44.1
Thanks for the report!
Looks like React Native has a slightly different syntax for text decoration — textDecorationLine, textDecorationColor, textDecorationStyle. My guess is that these haven't been implemented yet either, but thanks for alerting us to it 🙏
@jongold is there any place I could start looking into this? I would like to contribute but honestly I don't know where to start over this. Let me know if you have any thoughts around this.
for sure!
basic workflow I'd suggest:
copy-sketch-jsonsrc/jsonUtils/textLayers.js to see the corresponding portion of JSON, make the changesnpm link and then npm run watchexamples/ folders, npm install, npm link react-sketchapp, npm run render<Text style={{textDecorationLine: 'underline'}}…Addressing this issue here:
https://github.com/airbnb/react-sketchapp/pull/143
I'm guessing this can be closed since @davidseik worked on this:
https://github.com/airbnb/react-sketchapp/pull/143
Most helpful comment
for sure!
basic workflow I'd suggest:
copy-sketch-jsonsrc/jsonUtils/textLayers.jsto see the corresponding portion of JSON, make the changesnpm linkand thennpm run watchexamples/folders,npm install,npm link react-sketchapp,npm run render<Text style={{textDecorationLine: 'underline'}}…