A directive for Ionic framework for implementing native like pull-to-refresh.
npm install ion-refresh-native



ion-refresh-native extends the functionality of the ion-refresher or the Pull-To-Refresh component of the [Ionic Framework][1]. This has been tested with Ionic v3.
npm i ion-refresh-native --save or npm install ion-refresh-native --save
app.module.ts.
typescript
import { NgModule } from '@angular/core';
...
import { IonRefreshNativeModule } from 'ion-refresh-native';
@NgModule({
declarations: [
...
],
imports: [
...
IonRefreshNativeModule,
...
],
bootstrap: [IonicApp],
entryComponents: [],
providers: []
})
export class AppModule {}
`
+ In your app.scss file, add the following:
`typescript
@import '../../node_modules/ion-refresh-native/dist/scss/ion-refresh-native';
`
$3
Now add the ion-refresh-native attribute in the ion-refresher component.
`html
`
$3
ion-refresh-position (optional) Allows you to manually set the position of the icon when the refreshing state kicks off. Default is 55.
`html
``