Giter Club home page Giter Club logo

Comments (13)

ansmlc avatar ansmlc commented on August 23, 2024 2

@Exilz Hi one of the proposed fixes by react-native community for this issue is to use this fix, but we are unable to make it work with defaultTextProps.

0-02-05-ae8121ea5fd71c2cee1f18735135acf546bcca003c6b12251ccb0409e5ff4327_1c6da327771a89

The fix still works with pure <Text/> component in rn64. Is there a limitation that we are missing?

@aqos156 Were you able to find a workaround?

I have the same issue.

Added defaultTextProps={{selectable:true}} but that only enabled copying of the entire text, and no way to select text.

To reproduce:
Use react-native-render-html on iOS.

from react-native-render-html.

Exilz avatar Exilz commented on August 23, 2024 1

I forgot to close this issue, but textSelectable prop has been added in 3.8.0.

Keep in mind this is still problematic on iOS up to the current version of react-native (0.53 right now).

from react-native-render-html.

Exilz avatar Exilz commented on August 23, 2024

Hi, this would be a nice and easy addition for this module.

I'll try it out and add it in the next release if it's working properly without too much hassle.

from react-native-render-html.

stschwar avatar stschwar commented on August 23, 2024

Hey @Exilz
Can see that this feature didn't make what you referenced as 'next release'. What's the status? This would really be a great addition. Cheers!

from react-native-render-html.

Exilz avatar Exilz commented on August 23, 2024

Ok so I looked into this and I can't make <Text>'s selectable prop work properly.

It looks like a React Native bug, so I can't add this feature for now.

Check out the issue in rn repo

from react-native-render-html.

hyb175 avatar hyb175 commented on August 23, 2024

@Exilz Took a stab at it with this PR -> #85
Seems to work. Let me know if there is anything problematic with it

from react-native-render-html.

GopiKrishna10 avatar GopiKrishna10 commented on August 23, 2024

@Exilz ,

textSelectable Prop is selecting all the text in the screen.How should i select the specific text in the screen.Is there any solution for this

For example
i have text like some thing.Which i need to select the text is AAA
from above text i need to select the AAA.if i select the AAA hava to show th abbrevation in tooltip.this is my requirement.For now am not able to select the specific Text.Could you please help me Guys.

Thanks

from react-native-render-html.

Exilz avatar Exilz commented on August 23, 2024

@GopiKrishna10 take a look at my previous message, it isn't working properly on react-native's end.

I guess you're on iOS, and if so, it doesn't allow you to select only a part of your text for now, only the whole thing.

from react-native-render-html.

GopiKrishna10 avatar GopiKrishna10 commented on August 23, 2024

@Exilz , Yes

Am on IOS.I need to implement the Functionality in ios as well.May I know when it will be added to IOS.

from react-native-render-html.

AnandKuhar avatar AnandKuhar commented on August 23, 2024

How to copy the parsed result in a variable

from react-native-render-html.

aqos156 avatar aqos156 commented on August 23, 2024

@Exilz Hi one of the proposed fixes by react-native community for this issue is to use this fix, but we are unable to make it work with defaultTextProps.

0-02-05-ae8121ea5fd71c2cee1f18735135acf546bcca003c6b12251ccb0409e5ff4327_1c6da327771a89

The fix still works with pure <Text/> component in rn64. Is there a limitation that we are missing?

from react-native-render-html.

AryanMadhavVerma avatar AryanMadhavVerma commented on August 23, 2024

Having the same issue. Want to let user select a part of text and highlight it. The closest solution I've found is to use a TextInput instead of a Text and tinkering with some props like caretHidden, onChangeText etc.

from react-native-render-html.

The0racle avatar The0racle commented on August 23, 2024

Was anybody able to solve this?

from react-native-render-html.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.