Comments (13)
@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
.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.
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.
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.
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.
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.
@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.
@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.
@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.
@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.
How to copy the parsed result in a variable
from react-native-render-html.
@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
.
The fix still works with pure <Text/>
component in rn64. Is there a limitation that we are missing?
from react-native-render-html.
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.
Was anybody able to solve this?
from react-native-render-html.
Related Issues (20)
- other fonts don't work for children tags if you set font for parent HOT 1
- Failed prop type: Invalid prop `textDecorationColor` supplied to `Text`
- Render Error, maximum call stack size exceeded (native stack depth) HOT 2
- `<img>` embeds possibly not making use of `srcset` attribute resulting in blurry images HOT 3
- It is slow, it takes to import the components around 2 seconds
- Need Help for Break Lines Implementation HOT 1
- webView props mediaPlaybackRequiresUserAction not work HOT 2
- Not working android Realme device HOT 1
- defaultTextProps style overwrites renderers HOT 1
- Email or text is not showing proper way
- Slow navigate to a screen contains 12k words (including table) HOT 1
- RTL is not working on p or div tag HOT 1
- the app crashes while rendering the table on Android. `table-plugin`
- How to disable Font Scaling in react-native-render-html v6 HOT 1
- Font family not working HOT 2
- React Native 0.74 (Bridgeless) Support HOT 1
- Bullet didn't move with text when add padding to list item
- React 0.74 - Update defaultProps to JavaScript default parameters. HOT 43
- Can not render superscript <sup> tag HOT 1
- Lots of warnings logged in tests with fake timers HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-render-html.