Skip to content
Panoramic Image View for NativeScript
TypeScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo
platforms/android
screens
.gitignore
.npmignore
LICENSE
README.md
index.d.ts
package.json
panorama-imageview.android.ts
tsconfig.json

README.md

npm npm GitHub stars PayPal Donate

NativeScript-Panorama-ImageView

Panoramic Image View for NativeScript that uses the device movement to pan the images.

Native Library

Screens

Sample1 | Sample2

License

This plugin is licensed under the MITlicense by Brad Martin

Installation

From your command prompt/termial go to your app's root folder and execute:

tns plugin add nativescript-panorama-imageview

Usages

XML:

<Page xmlns="http://schemas.nativescript.org/tns.xsd" xmlns:PanoramaImageView="nativescript-panorama-imageview" loaded="pageLoaded">
    <ActionBar title="Panoramic ImageView" />
   <ScrollView>
        <StackLayout class="p-20">
            <PanoramaImageView:PanoramaImageView height="220" src="~/images/panSunset.jpg" />
            <PanoramaImageView:PanoramaImageView height="200" scrollbar="true" src="https://cdn.pixabay.com/photo/2016/11/23/18/29/cloudy-1854241_960_720.jpg" />
            <PanoramaImageView:PanoramaImageView height="240" src="https://cdn.pixabay.com/photo/2016/11/21/15/43/beach-1846040_960_720.jpg" />
        </StackLayout>
    </ScrollView>
</Page>

Properties

  • scrollbar: boolean optional (default = false) - if true a scrollbar will be visible on the image view.
You can’t perform that action at this time.