4 ms·
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 S
by tlrobinson 10y 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.
- jongold 10y agoIf 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/37 & https://github.com/airbnb/react-sketchapp/issues/29#issuecomment-297435389 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 :)