Prototypr

Prototyping, UX Design, Front-end Development and Beyond 👾 | ✍️ Write for us https://bit.ly/apply-prototypr

Follow publication

I tried the react-sketchapp

--

Yesterday I read about a NPM package from AirBnB: It would take a React Native component and generate a plug-in for Sketch vector drawing app of the React UI. I tried it out this morning on my Mac.

Pretty cool concept: You code your React Native app, and using the AirBnB NPM package react-sketchapp you would get a design file of the way the React App looks like.

Example of dynamically updated Sketch design file of an example React Native app

What you see above is an altered version of an example React Native app supplied as part of the AirBnB NPM package “react-sketchapp”. I simply checked out the repository using git. Followed the install guide and after a little bump (you need to have Sketch open with an empty file before you run the npm run render command) I now have an autogenerated live updated Sketch plug-in which will render how the example React Native app looks like rendered.

I used Microsoft Code editor, but you could use any editor to make your changes to the code.

The sketch design file updates as you save your React App code

I must say that I was impressed: As I changed code and pressed “Ctrl-s”, two seconds later the design inside Sketch was updated! I had to pause for a few seconds trying to grasp the potential consequences this could have in future development of files!

If this is possible for React Native you should be able to do it for many other types of applications: React (for web), Angular and other javascript based stacks.

The truly innovative move: javascript Sketch plug-ins

The work done by AirBnB is truly cool and creative! Thank you AirBnB for doing this in a modern open source way, sharing your innovations — respect for that!

However I think that the truly innovative move is inside Sketch. They seem to have understood how to make a truly innovative and modern application in their vector drawing app: Sketch. They have chosen to use javascript in their way to open up their application. That is smart IMHO.

Everything (in my little world) turns to javascript. From a life as a utility language inside a webpage, it moved to backend (node.js), it moved into cross platform applications Electron web based desktop applications and now we start to see big applications like Sketch use a javascript environment to open up “native” applications — Great! :-) I have always told people around me that javascript is the way of the future.

--

--

Published in Prototypr

Prototyping, UX Design, Front-end Development and Beyond 👾 | ✍️ Write for us https://bit.ly/apply-prototypr

Written by netsi1964

Keywords: Open minded, cross-think. Able to see soloutions from one area being usefull in another area. Please inspire me! :-)

Responses (1)