-
-
Notifications
You must be signed in to change notification settings - Fork 50
/
login-page.xml
17 lines (16 loc) · 1.34 KB
/
login-page.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<Page xmlns="http://schemas.nativescript.org/tns.xsd"
xmlns:Facebook="nativescript-facebook"
loaded="pageLoaded" class="page">
<StackLayout class="login-buttons">
<Facebook:LoginButton automationText="fbLogin" login="{{ onLogin }}"></Facebook:LoginButton>
<Button tap="{{ login }}" text="Continue with Facebook (Custom)" automationText="facebookCustom"></Button>
<Button tap="{{ getCurrentAccessToken }}" text="Get current access token"></Button>
<Facebook:ShareButton content="{{ linkContent }}"></Facebook:ShareButton>
<Facebook:SendButton content="{{ genericContent }}"></Facebook:SendButton>
<Button tap="{{ onShareDialog }}" automationText="Open Share dialog" text="Open Share dialog (link)" visibility="{{ canShowLinksShareDialog ? 'visible' : 'collapsed' }}" ></Button>
<Button tap="{{ onShareDialogPhotos }}" text="Open Share dialog (photos)" visibility="{{ canShowPhotosShareDialog ? 'visible' : 'collapsed' }}"></Button>
<Button tap="{{ onSendDialog }}" text="Open Message Share dialog" visibility="{{ canShowLinksMessageDialog ? 'visible' : 'collapsed' }}"></Button>
<Button tap="{{ onSendGenericDialog }}" text="Share Message Generic Template" visibility="{{ canShowGenericMessageDialog ? 'visible' : 'collapsed' }}"></Button>
<Button tap="{{ logEventAction }}" text="Log Event"></Button>
</StackLayout>
</Page>