-
-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathhome-page.xml
19 lines (19 loc) · 892 Bytes
/
home-page.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<Page xmlns="http://schemas.nativescript.org/tns.xsd"
xmlns:Facebook="nativescript-facebook"
loaded="pageLoaded" class="page">
<StackLayout class="home">
<Image src="{{avatarUrl}}" class="avatar"/>
<StackLayout class="info">
<Label text="ID:" class="label"></Label>
<Label text="{{ userId }}"></Label>
<Label text="NAME:" class="label"></Label>
<Label text="{{ username }}"></Label>
</StackLayout>
<StackLayout class="buttons">
<Facebook:LoginButton logout="{{ onLogout }}"></Facebook:LoginButton>
<Button automationText="customLogOut" tap="{{ logout }}" text="Log out (Custom)"></Button>
<Button automationText="getCurrentAccessToken" tap="{{ getCurrentAccessToken }}" text="Get current access token"></Button>
<Button tap="{{ logEventAction }}" text="Log Event"></Button>
</StackLayout>
</StackLayout>
</Page>