Comments (3)
This is an old issue, I don't think this is a concern anymore. Please message back if we can't rely on ES6+ -- react-native core relies on ES6 these days.
from react-native-parsed-text.
@fbartho This might be an "old" issue, but it's still valid, as you're only exporting an ES6 (with ES6 modules syntax) version, and not a browser-ready bundle. The problem is when you're trying to use your module outside of the Metro bundler context (it's not related to whether React Native uses ES6 internally or not), which by default transpiles node_modules
contrary to other bundlers such as Webpack or Rollup.
For other people facing the same issue, you need to instruct Webpack to transpile react-native-parsed-text
source code, by adding the following option:
exclude: /node_modules\/(?!(react-native-parsed-text))/,
to your babel-loader configuration.
from react-native-parsed-text.
React Native Web made some different technical decisions than other libraries such as
https://github.com/vincentriemer/react-native-dom or
https://microsoft.github.io/reactxp
Itโs not clear to me that -web is the winning technical solution here. Adding a whole build tool chain for -web seems like a lot today. But if somebody contributes easy modifications to support it, then that might be okay (rollup). Are you sure you canโt configure your Babel or webpack to conditionally compile your node_modules?
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.