question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I get bug reports from people using this library and trying to run their apps on the web using React Native for Web.

Web support could be added by exporting the SVG components from React DOM or wrapping them in React Native for Web’s createElement. And compiling the package before publishing to npm. It may be complicated by the decision to deviate from the SVG standard and add things like setNativeProps to the native components.

Here’s an example of how much massaging needs to be done to convert this library’s API to the SVG standard on web https://github.com/godaddy/svgs/blob/master/index.js

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:34

github_iconTop GitHub Comments

2reactions
msandcommented, Feb 16, 2018

Hmm, is https://github.com/godaddy/svgs insufficient?

1reaction
msandcommented, Oct 4, 2018

I’ve forked svgs to support react-native-web and published it under the name swgs to see how much interest there is for this https://www.npmjs.com/package/swgs Essentially the only difference so far is to use import { createElement } from 'react-native-web'; instead of import React from 'react'; https://github.com/msand/swgs/commit/d5ac0a4e93e6bad3b8ed190c6833adf58361fcfc#diff-168726dbe96b3ce427e7fedce31bb0bcR1 @necolas Are there any more changes needed on the native side or in swgs at this point?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support and Login for DIY Websites, Hosting and Domains ...
If you're having trouble logging in, please contact customer support at 1-800-311-2707. Sign-In. Current Member Sign In. You can find your User Name...
Read more >
9 Types of Website Support and Maintenance Services
9 Types of Website Support and Maintenance Services · 1. Updating Website Software · 2. Improving Website Speed · 3. Fixing HTML Errors...
Read more >
Can I use... Support tables for HTML5, CSS3, etc
"Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.
Read more >
Effective Website Help Systems: Tips and Examples - WebFX
A site's help system is a useful tool for existing users and newcomers. Read our tips, best practices, and examples to help system...
Read more >
What is the web support portal and how do I set it up?
The web support portal consists of your FAQs and a contact form that feeds issues straight into your Helpshift dashboard. Your web support...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found