Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.idea/
npm-debug.log
package-lock.json
node_modules
platforms/
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ component screenshots at [nativescript-vue.org](https://nativescript-vue.org/).
* The [Appium](http://appium.io/) client. Just download and install the latest [from GitHub](https://github.com/appium/appium-desktop/releases/latest).

## Running the tests locally
Start Appium, or you'll receive an error `127.0.0.1` can't be reached.
Start Appium and press 'Start the server', or you'll receive an error `127.0.0.1:4723` can't be reached.

### Android
```bash
Expand Down
4 changes: 4 additions & 0 deletions app/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
margin: 5;
}

.m-10 {
margin: 10;
}

.m-15 {
margin: 15;
}
Expand Down
4 changes: 4 additions & 0 deletions app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ new Vue({
name: 'Progress',
component: () => require('./elements/components/Progress')
},
{
name: 'ScrollView',
component: () => require('./elements/components/ScrollView')
},
{
name: 'SearchBar',
component: () => require('./elements/components/SearchBar')
Expand Down
48 changes: 48 additions & 0 deletions app/elements/components/ScrollView.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
module.exports = {
template: `
<GridLayout rows="auto, *">
<ScrollView row="0" orientation="horizontal">
<StackLayout orientation="horizontal">
<Label text="h1" class="m-10" />
<Label text="h2" class="m-10" />
<Label text="h3" class="m-10" />
<Label text="h4" class="m-10" />
<Label text="h5" class="m-10" />
<Label text="h6" class="m-10" />
<Label text="h7" class="m-10" />
<Label text="h8" class="m-10" />
<Label text="h9" class="m-10" />
<Label text="h10" class="m-10" />
<Label text="h11" class="m-10" />
<Label text="h12" class="m-10" />
</StackLayout>
</ScrollView>
<ScrollView row="1" horizontalAlignment="center">
<StackLayout>
<Label text="v1" class="m-10" />
<Label text="v2" class="m-10" />
<Label text="v3" class="m-10" />
<Label text="v4" class="m-10" />
<Label text="v5" class="m-10" />
<Label text="v6" class="m-10" />
<Label text="v7" class="m-10" />
<Label text="v8" class="m-10" />
<Label text="v9" class="m-10" />
<Label text="v10" class="m-10" />
<Label text="v11" class="m-10" />
<Label text="v12" class="m-10" />
<Label text="v13" class="m-10" />
<Label text="v14" class="m-10" />
<Label text="v15" class="m-10" />
<Label text="v16" class="m-10" />
<Label text="v17" class="m-10" />
<Label text="v18" class="m-10" />
<Label text="v19" class="m-10" />
<Label text="v20" class="m-10" />
<Label text="v21" class="m-10" />
<Label text="v22" class="m-10" />
</StackLayout>
</ScrollView>
</GridLayout>
`
};
1 change: 1 addition & 0 deletions generate-screenshots.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const components = [
'ListPicker',
'ListView',
'Progress',
'ScrollView',
'SearchBar',
'SegmentedBar',
'Slider',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"deploy": "bash deploy.sh",
"e2e": "mocha --opts ./e2e/config/mocha.opts",
"ios.build": "tns build ios",
"ios.screenshots": "npm run appium -- --runType=ios-simulator103iPhone6 --sauceLab=true"
"ios.screenshots": "npm run appium -- --runType=ios-simulator103iPhone6"
},
"devDependencies": {
"babel-traverse": "6.26.0",
Expand Down
Binary file added screenshots/android23/ScrollView.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.