Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to put line through text ? #753

Closed
hugohua opened this issue Apr 8, 2015 · 8 comments
Closed

how to put line through text ? #753

hugohua opened this issue Apr 8, 2015 · 8 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@hugohua
Copy link

hugohua commented Apr 8, 2015

not support css :

text-decoration: line-through;

This function is how to achieve ?

@bakso
Copy link

bakso commented Apr 8, 2015

Help!Help!

@mattotodd
Copy link

Not all css is available for use, yet.

@brentvatne
Copy link
Collaborator

You can implement your own custom component for this until it's added in to core: strike through on UILabel and how to create your own components for react-native

@hugohua
Copy link
Author

hugohua commented Apr 9, 2015

@brentvatne thanks

@vkurchatkin
Copy link
Contributor

This could be trivially added the same way as in #482 with NSStrikethroughStyleAttributeName attribute

@KJlmfe
Copy link
Contributor

KJlmfe commented Apr 14, 2015

I contribute the code and made a pull request #845

Wait for FB merge.

@brentvatne
Copy link
Collaborator

@KJlmfe - thanks, closing this issue as the discussion as moved to the PR now 😄

@Premjeet-Singh
Copy link

In react-native you can use :
textDecorationLine: 'line-through'

@facebook facebook locked as resolved and limited conversation to collaborators May 29, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

8 participants