Giter Site home page Giter Site logo

Comments (10)

jrichardlai avatar jrichardlai commented on June 26, 2024

which version are you using ? also what is the text passed to ParsedText ? thanks

from react-native-parsed-text.

nidzovito avatar nidzovito commented on June 26, 2024

I am using react native version 0.16.0
react-native-parsed-text: 0.0.9
https://github.com/taskrabbit/react-native-parsed-text

Thanks

from react-native-parsed-text.

nidzovito avatar nidzovito commented on June 26, 2024

Sorry I misunderstood text is empty, although I specified some string, it has same error

from react-native-parsed-text.

jrichardlai avatar jrichardlai commented on June 26, 2024

Does it has the same error if you wrap it inside a View?

Sent from my iPhone

On Dec 19, 2015, at 2:12 AM, Georgi K [email protected] wrote:

Sorry I misunderstood text is empty, although I specified some string, it has same error


Reply to this email directly or view it on GitHub.

from react-native-parsed-text.

nidzovito avatar nidzovito commented on June 26, 2024

Yes I did it like this.
return (

<ParsedText
style={[styles.text, (rowData.position === 'left' ? styles.textLeft : styles.textRight)]}
parse={parse}
>


);
But same error.

from react-native-parsed-text.

nidzovito avatar nidzovito commented on June 26, 2024

I even changed like this.
return (

    <ParsedText>          
    </ParsedText>

  );

But same error.

FYI My class is extending component class.
and other elements are working.

class Chatpage extends Component{
}

from react-native-parsed-text.

nidzovito avatar nidzovito commented on June 26, 2024

I changed from 'require' to 'import' and it works.
// var ParsedText = require('react-native-parsed-text');
import ParsedText from 'react-native-parsed-text';

But in one of working example of using ParsedText it works with ParsedText.
Maybe that example is using old version?
I am not sure why.
I am closing the issue now.
Thanks

from react-native-parsed-text.

fender avatar fender commented on June 26, 2024

Thanks @georgi-kovachev

Why do we have to use import.. ? For all other modules I am able to use require(..).

from react-native-parsed-text.

bensinc avatar bensinc commented on June 26, 2024

I'm also having this issue, and am using "import:" import { ParsedText } from 'react-native-parsed-text'

My versions:

react-native-cli: 1.0.0
react-native: 0.33.0

The text doesn't seem to matter. It can be blank, have matching URLs, or no matches, and still fails.

from react-native-parsed-text.

jrichardlai avatar jrichardlai commented on June 26, 2024

try import ParsedText from 'react-native-parsed-text';

from react-native-parsed-text.

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.