Comments (7)
I'm going to assume this is because the published version is in ES6 instead of ES5. I've created an PR to publish in ES5, and still have ES6 for React-Native.
from svgs.
Hi @3rd-Eden, thanks for the response!
I come from react native and I'm fairly new to react web. Is there a way to consume es6 modules from a web app generated with create-react-app
. With that, I can use SVGS as it's right now.
Cheers,
JM
from svgs.
We published it as ES5 in 2.1.0, but it doesn't resolve the issue it seems because it probably still uses the browser
field in the package.json for the code but we need that as ES6 and set to ./index
so the react-native packager can find the index.native.js file and use the ES6 version of it.
from svgs.
Is this still the case with 3.0.0 now that #8 got merged and released?
from svgs.
I can confirm that v3.0.0 works with create-react-app.
from svgs.
yay! thanks everyone!
from svgs.
Thanks for the confirmation, closing the issue.
from svgs.
Related Issues (20)
- Text x,y properties cause warnings in React HOT 1
- Support origin property HOT 3
- Setting style property HOT 2
- react-native-web-community support HOT 2
- package.json listing dev dependencies as regular dependencies HOT 1
- BUG: refs cannot be applied because of stateless functions. HOT 2
- Add Travis.CI integration HOT 1
- ClipPath not working HOT 3
- Mask component missing HOT 5
- Error: Cannot find module 'svgs' from 'js/components/Island.js' HOT 2
- A problem occurred evaluating project ':react-native-svg'. > Could not find method implementation() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. HOT 1
- Path onPress prop not handled HOT 3
- Server rendering broken with module declaration HOT 3
- svgs component cannot receive the style created by StyleSheet in web HOT 2
- SvgXml component missing
- No SvgUri or SvgCssUri Support
- TypeScript definitions? HOT 1
- Is svgs still needed since react-native-svg supports web?
- Can we do the same to div and View as svgs do? 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 svgs.