So I have this code, which for formatting reasons uses nested <Text>
element, like this
<Text style={style1}>
<Text>This link leads </Text>
<TouchableWithoutFeedback {...props} accessibilityLabel="link">
<Text style={link}>Here!</Text>
</TouchableWithoutFeedback>
</Text>
Which, according to inspector is merged to a single <android.widget.TextView>
element, and the nested accessibilityLabel
is lost - Therefore I have no way of clicking the link in Appium.
So is there a way to click the link here? Or do I have to rewrite the block to be nested inside a <View>
? (Which works, but the formatting is off)