Skip to content
A NativeScript plugin to create native Google sign-in button
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 Initial commit May 13, 2017
docs - Initial commit May 13, 2017
platforms/android - gms:play-services-base:11.0.+ Jun 25, 2017
.gitignore
.npmignore - Initial commit May 13, 2017
README.md
gsb-common.ts - minors May 14, 2017
gsb.android.ts - minors May 14, 2017
index.d.ts - minors May 14, 2017
package.json
references.d.ts Initial commit May 13, 2017
tsconfig.json Initial commit May 13, 2017

README.md

A NativeScript plugin to create native Google sign-in button

Supports Nativescript 3.0.x and Android platform only.

Adapts the native Android SignInButton control

Installation

tns plugin add nativescript-plugin-google-signin-button

Screenshot

Usage

<Page xmlns="http://schemas.nativescript.org/tns.xsd" loaded="pageLoaded"
      xmlns:gsb="nativescript-plugin-google-signin-button">
    <ScrollView>
        <StackLayout>
            <gsb:GsbButton id="gsbButton" horizontalAlignment="left" tap="gsbTap"/>
            <gsb:GsbButton horizontalAlignment="right" tap="gsbTap"/>
            <gsb:GsbButton horizontalAlignment="stretch" tap="gsbTap"/>

            <gsb:GsbButton colorStyle="dark" horizontalAlignment="left" tap="gsbTap"/>
            <gsb:GsbButton colorStyle="light" horizontalAlignment="left" tap="gsbTap"/>
            <gsb:GsbButton sizeStyle="wide" horizontalAlignment="left" tap="gsbTap"/>
            <gsb:GsbButton colorStyle="dark" sizeStyle="wide" horizontalAlignment="left" tap="gsbTap"/>
        </StackLayout>
    </ScrollView>
</Page>

Attributes

  • colorStyle - Button color scheme. dark, light, auto (Google Play services will decide the color style for sign-in button)
  • sizeStyle - Button size. standard, wide, icon (icon only shown)

License

MIT

You can’t perform that action at this time.