×

Mirror.js: Live prototyping native Android, in JavaScript

Note: We have stopped the development of Mirror.js and put what we’ve learned into Mirror Sandbox, a set of new features based on Java code hot-swapping. See this post for details.

Feature overview and howtos

mirrorjs

Mirror.js: Live prototyping native Android, in JavaScript


Overview

Mirror.js preview is a set of experimental features that we are considering to integrate into jimu Mirror. It reflects some of our thoughts on how the workflow for designing and developing modern Android UI could be improved.

The Android Studio plugin available on this page is a superset of jimu Mirror. You can try “Mirror.js” for free just as Mirror itself. If you need more time, please submit a request. We’d really appreciate your feedback that will shape the future of Mirror (and the future of Android development). You can either visit our Google+ community, or email to [support AT jimulabs.staging.wpengine.com].

Installation

In Android Studio/IDEA, Preferences (or Settings) -> Plugins -> install plugin from disk, and then choose the downloaded zip file.

Features

  • Preview native animations live: you can specify and choreograph Android’s native animations in JavaScript. The updated animations are instantly picked up and displayed by Mirror just as your layouts and other resources. This particularly helps when tweaking parameters of XML based animators before using it in Java code.

  • Create prototypes with screen transitions: you can create complete and realistic prototypes with accurate animation effects and transitions. The resulting prototypes look and behave very close to the app when it’s finished. This means that you can collect high quality feedback way before the function code is implemented. This saves everyone’s time and improves product quality.

  • Share your work as an APK: you can export your work to an APK which can be installed and run on a device just as any APKs.