Skip to content

Commit

Permalink
fix: right imports for typings
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Nov 11, 2020
1 parent 971766c commit 9192209
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
4 changes: 1 addition & 3 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { ContentView } from '@nativescript/core/ui/content-view';

export * from '@nativescript/core/ui/content-view';
import { ContentView } from '@nativescript/core';

/**
* Contains the PullToRefresh class, which represents a Layout that contains the UI pattern for pull-to-refresh
Expand Down
5 changes: 1 addition & 4 deletions src/pulltorefresh-common.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { ContentView } from '@nativescript/core/ui/content-view';
import { Property, View } from '@nativescript/core/ui/core/view';
import { ContentView, Property, View } from '@nativescript/core';
import { PullToRefresh as PullToRefreshDefinition } from '.';

export * from '@nativescript/core/ui/content-view';

export class PullToRefreshBase
extends ContentView
implements PullToRefreshDefinition {
Expand Down
1 change: 1 addition & 0 deletions src/pulltorefresh.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export * from './pulltorefresh-common';
export class PullToRefresh extends PullToRefreshBase {
public nativeView: com.nativescript.swiperefreshlayout.CarouselFriendlySwipeRefreshLayout;

//@ts-ignore
get android() {
return this.nativeView;
}
Expand Down
1 change: 0 additions & 1 deletion src/pulltorefresh.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
backgroundColorProperty,
colorProperty,
Utils,
View,
} from '@nativescript/core';
import { PullToRefreshBase, refreshingProperty } from './pulltorefresh-common';

Expand Down

0 comments on commit 9192209

Please sign in to comment.