Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #27 from PeterStaev/android-css-fix
Browse files Browse the repository at this point in the history
Fix android styling
  • Loading branch information
bradmartin authored Jun 14, 2017
2 parents 7b4b709 + 92d33c0 commit d4b4bf6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nativescript-pulltorefresh",
"version": "2.0.0-rc.1",
"version": "2.0.1",
"description": "A NativeScript plugin to provide the Pull to Refresh control on any view.",
"main": "pulltorefresh",
"typings": "index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions pulltorefresh.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ export class PullToRefresh extends PullToRefreshBase {

[colorProperty.setNative](value: Color | number) {
const color = value instanceof Color ? value.android : value;
this.nativeView.setProgressBackgroundColorSchemeColor(color);
this.nativeView.setColorSchemeColors([color]);
}

[backgroundColorProperty.setNative](value: Color | number) {
const color = value instanceof Color ? value.android : value;
this.nativeView.setColorSchemeColors(color);
this.nativeView.setProgressBackgroundColorSchemeColor(color);
}
}

Expand Down

0 comments on commit d4b4bf6

Please sign in to comment.