How to represent different tap event for each word in a sentence under label element


#1

How to represent different tap event for each word in a sentence under label element? Tried span using formattedText, but seems span cannot trigger events.

			<Label>
			    <Label.formattedText>
			        <FormattedString>
			            <FormattedString.spans>
			                <Span text="some " fontWeight="Bold" tap="tap_1"></Span>
			                <Span text="content" tap="tap_2"></Span>
			            </FormattedString.spans>
			        </FormattedString>
			    </Label.formattedText>
			</Label>

#2

It’s not possible with built-in Label / FormatterString module. You may still be able to achieve this by accessing the native apis.


#3

could you please share some code to achieve this using native apis ?