Skip to content

Added ScrollView #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 19, 2018
Merged
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/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions app/app.css
Original file line number Diff line number Diff line change
@@ -2,6 +2,10 @@
margin: 5;
}

.m-10 {
margin: 10;
}

.m-15 {
margin: 15;
}
4 changes: 4 additions & 0 deletions app/app.js
Original file line number Diff line number Diff line change
@@ -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')
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
@@ -12,6 +12,7 @@ const components = [
'ListPicker',
'ListView',
'Progress',
'ScrollView',
'SearchBar',
'SegmentedBar',
'Slider',
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
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.