This demo shows how an app might sense the orientation of a native device using the JavaScript bridge library.