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

App crashed if link title is bold style #21

Closed
linghu-chong opened this issue Dec 10, 2016 · 8 comments
Closed

App crashed if link title is bold style #21

linghu-chong opened this issue Dec 10, 2016 · 8 comments

Comments

@linghu-chong
Copy link

try this:

[__Google__](http://www.google.com)
@linghu-chong
Copy link
Author

E/AndroidRuntime( 1763): com.facebook.react.uimanager.IllegalViewOperationException: Unexpected view type nested under text node: class com.facebook.react.uimana

@linghu-chong
Copy link
Author

linghu-chong commented Dec 10, 2016

actually, it will crash even I just put the the example in the readme:

  #Markdown in react-native is so cool!

  You can **emphasize** what you want, or just _suggest it_ 😏…

  You can even [link your website](http://charlesmangwa.surge.sh) or if you prefer: [email somebody](mailto:email@somebody.com)

  Spice it up with some GIF 💃:

  ![Some GIF](https://media.giphy.com/media/dkGhBWE3SyzXW/giphy.gif)

  And even add a cool video 😎!

  [![A cool video from YT](https://img.youtube.com/vi/dQw4w9WgXcQ/0.jpg)](http://www.youtube.com/watch?v=dQw4w9WgXcQ)

  [![Another one from Vimeo](https://i.vimeocdn.com/video/399486266_640.jpg)](https://vimeo.com/57580368)

@linghu-chong
Copy link
Author

Actually I got what happened.
This package only support IOS. it won't work in Android.
Any plan to support Android?

@CharlesMangwa
Copy link
Owner

Hi @bearpku! This package does actually support both Android & iOS. Probably something went wrong during the last updates: I'll check it out this weekend!

@briancalvium
Copy link

I am using 1.0.60-rc.3, and this works in RN 0.38:

[**title**](http://www.google.com)

However, links are pretty hard to hit on android. I have made a custom rule for link with hitslop, but it doesn't seem to affect it. I would guess it's cut off by the parent bounds, but adding padding to the link style doesn't seem to work.

@CharlesMangwa
Copy link
Owner

@bearpku As @briancalvium mentioned, it will work if you use double ** ** to bold your title.

@CharlesMangwa
Copy link
Owner

Closing issue #21

@linghu-chong
Copy link
Author

but it doesn't make sense to just support ** ** . Any plan to support __ __ ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants