Comments (10)
which version are you using ? also what is the text passed to ParsedText ? thanks
from react-native-parsed-text.
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.
Sorry I misunderstood text is empty, although I specified some string, it has same error
from react-native-parsed-text.
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.
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.
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.
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.
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.
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.
try import ParsedText from 'react-native-parsed-text';
from react-native-parsed-text.
Related Issues (20)
- how to implements using Hashtag and Bold text patterns together? HOT 3
- How to get number of matches? HOT 1
- Change words in text? HOT 1
- Android_all format was change follow the first character when copy paste a string include #, url, text
- could I use it in react for a website HOT 2
- ERROR TypeError: undefined is not an object (evaluating '_reactNative.Text.propTypes.style') in react native 0.70
- URL parser with single quote not working HOT 3
- Bank card number is not phone number
- Pattern for Bold and Italic is not working HOT 3
- parse the state HOT 5
- New release? HOT 1
- Feature: Nested Matchers HOT 4
- Google maps URL not getting parsed due to comma HOT 1
- [Android] Incorrect bold font processing HOT 7
- this.state cannot be parsed HOT 1
- renderText's style does not work after I adding any character inside TextInput tag HOT 2
- Multiple hashtags HOT 1
- how to make ellipsizeMode working?
- Hey Everyone We are supported emoji or emoji parser?
- selectable works on iOS but not on Android. HOT 2
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-parsed-text.