Android React-Native - text textDecorationLine not working

For the Android platform, it’s all the same to decorate <Text>, for example, I want to be able to add border styles (for example, to <image>), or at least the ability to emphasize with touch. Tried this code below and it does not work.

style={{textDecorationLine: 'underline', textDecorationStyle: 'dotted', textDecorationColor: 'blue'}}>

It looks like this is being tracked https://github.com/facebook/react-native/pull/3819

Look for ways to decorate <Text>until it is fixed.

Thanks!

+4
source share

Source: https://habr.com/ru/post/1620903/


All Articles