Giter Site home page Giter Site logo

cawfree / react-native-twitter-textview Goto Github PK

View Code? Open in Web Editor NEW
75.0 3.0 20.0 2.72 MB

A <TextView/> component for React Native built on top of twitter-text linkification.

License: MIT License

JavaScript 100.00%
tags hashtags twitter react rn react-native mention link

react-native-twitter-textview's Issues

Can't detect underscore in mention

Hi @cawfree and @bjacog ,

Another good package of yours ( the other one I found useful was twitter native embed ).
The package seems to not properly detect _ when in mention

image

This is the tweet link : https://twitter.com/_0nk4r_/status/1295171147936366593

and this is the tweet_text :

@impratikdabhi @trippy_bhaiya @harshbothra_ @manas_hunter @ADITYASHENDE17 @MrCyberwarrior @mrunal110 @darklotuskdb @vasim_infosec @aaditya_purani @udit_thakkur @iDiablo5 Note! People see that these guys making 8k a week and buying a phones, bikes and shit but they don't see they have also started from 0.They have invested shit ton of time and efforts  to get there. So new Fellas drop your $$$$ shit and work hard and persistent .#bugbountytip

Email address taken as mentions

I am using the component for a description field. It works all fine for url and mentions, but when it comes to an email address it will only take the @gmail as a mention and ignore the rest of the address.
Ex: myemail**@gmail**.com

Skip line ignored after parsed text

Hello, when the text contains any skip line character it gets ignored after the parse for finding mentions.

Ex:
Original Text
Hello this is my first paragraph, it will be followed by a empty line.

Second paragrah is here!.

Visible text
Hello this is my first paragraph, it will be followed by a empty line.
Second paragrah is here!.

Email addresses causing mentions to appear in certain context

I've run into an issue where if an email address is in the middle of some text, like the example of the first card of the screenshot below, it seems to add everything starting with the @ and turning it into a mention. If no other text is after the email address, things work as expected.

Adding extractEmails={false} fixes the addition of the mention but breaks the email click functionality.

I will see if I can figure out what is going on but if anyone else can help, it'd be much appreciated. I suspect part of it has to do with the regex patterns defined...

image

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.