Label formatting not working in xml


#1

I am trying to give underline for the label in xml. Below is the code snippet. But it is not working. I am running it on iOS platform. I am using typescript template hence i would like to achieve in xml or typescript.

<Label>
        <Label.formattedText>
            <FormattedString>
            <FormattedString.spans>
                <Span text="I forgot my password" underline="true" ></Span>
            </FormattedString.spans>
            </FormattedString>
        </Label.formattedText>
 </Label>

Any help would be great.

#2

Please refer the doc here for right example with {N} Core

https://docs.nativescript.org/ui/ns-ui-widgets/formatted-string