Hacker News new | ask | show | jobs
by tlrobinson 3346 days ago
Very cool.

It would be even cooler if it could render React components written for the web without modification, maybe in a transparent webview. I'm guessing Sketch would need to add support for that.

1 comments

If we can figure a way to translate React DOM to React Native-style components then this will be doable.

You could write a codemod that turned <div> into <View>, <h1-6> into <Text> etc, but there's complexity in standardizing layout systems & CSS properties too. React Native-style components provide the best chance of us using React as a truly universal platform.

see https://github.com/airbnb/react-sketchapp/issues/37 & https://github.com/airbnb/react-sketchapp/issues/29#issuecom... for some more context

If you have any ideas on solving I'd love to see them in GitHub so I don't lose track of them :)