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.

[future] cross-platform support

See original GitHub issue

vx should work on web, native, vr, everywhere. The current implementation depends on react-dom which means it’s only available on web.

@lelandrichardson’s talk React as a Platform https://www.youtube.com/watch?v=hNwQPJy-XZY https://github.com/lelandrichardson/react-primitives-art

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:21
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

9reactions
macintoshhelpercommented, Apr 3, 2020

Hi, I’ve opened a draft PR for a fork that I’ve been working on, with react-primitives support. There’s an injection API and extension resolving, so you can import svg components with:

import { Svg, G, Defs } from '@vx/primitives',

and they resolve to: <svg>, <g>, etc on web,

or to require('react-native-svg').Defs or require('react-sketchapp').Defs, etc

d3 meets Sketch.app 🙂

image

2reactions
Rohithzrcommented, Jun 30, 2017

I agree, I am in the process of building react app and react-native app, so I would be highly inclined towards using a solution that can be implemented across the two platforms.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Our Top 15 Cross Platform Games in 2023 - Game Design
Partial Cross-Platform Support · Minecraft · Guns of Icarus Online · War Thunder · Hearthstone · Final Fantasy XIV: A Realm Reborn ·...
Read more >
All cross-platform games (PS5, Xbox Series X, Switch, PC ...
Full cross-platform support ; Call of Duty: Warzone: PS4, Xbox One, PC, Xbox Series X, PS5 ; Farming Simulator 22: PC, PS4, PS5,...
Read more >
The Best Crossplay Games to Play Right Now
Like many other Microsoft-published games these days, Forza Horizon 5 features crossplay support for those playing on Xbox One, Xbox Series, and ...
Read more >
Every Cross Platform & Crossplay Game (October 2022) - PS5 ...
Games That Support Crossplay So Far ; SnowRunner, PC, Xbox Series X|S, PS4, Xbox One, Nintendo Switch, Yes ; Yu-Gi-Oh! Master Duel, PC,...
Read more >
Is There Cross-Platform Support for Pro Clubs in 'FIFA 23'?
Cross -play is finally supported in 'FIFA 23,' but only certain ... Other 'FIFA 23' Features Will Get Cross-Play Support With Future Updates....
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