Ask DN: Sketch Mirror/Preview for Android?

7 years ago from J A, Design Lead at Gametime

  • J AJ A, 7 years ago

    Thanks for the link. Unfortunately this doesn't work...(think if might only work on sketch 2.2.4) know of anything else?

    0 points
    • Marc EdwardsMarc Edwards, 7 years ago

      Maybe contact the author to see if he can help?

      0 points
    • David KlawitterDavid Klawitter, 7 years ago (edited 7 years ago )

      Without knowing how your file is set up I can't be for sure but I use a variety of artboards and was able to get this to work by iterating through artboards, not slices (line 40).

      This is my first foray into Sketch scripting so I need to dig into this a bit more. Ideally, for me, it would preview the current artboard but I'm not sure that's available in the API.

      Fun stuff - glad I came across this.

      EDIT: It was actually pretty trivial to get my current art board previewed. I'm going to fork this project and get to work.

      FORKED: This version will simply preview the currently selected artboard and was tested against the latest Sketch and Skala apps.

      https://github.com/davidklaw/sketch-preview

      0 points