Skip to content

Commit

Permalink
fix: ViewPager docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-kozel authored Apr 18, 2023
1 parent e023b3f commit 3e155d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/src/landing/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
</div>
<div class="hero-section">
<div class="container-hero">
<h1 class="text-heading-1 default">UI Kitten 5.1</h1>
<h1 class="text-heading-1 default">UI Kitten 5.3</h1>
<div class="div-block-6">
<p class="text-paragraph-1 default">A React Native framework for creating stunning cross-platform mobile applications. Design system-based, UI Kitten brings your product from an MVP to the final product version. Forever open source and free!</p>
</div>
Expand Down
8 changes: 3 additions & 5 deletions src/components/ui/viewPager/viewPager.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@ export interface ViewPagerProps<ChildrenProps = {}> extends ViewProps {
animationDuration?: number;
}

const DEFAULT_DURATION = 300;

export type ViewPagerElement = React.ReactElement<ViewPagerProps>;

/**
* A view with a set of swipeable pages.
*
* @extends React.Component
**
*
* @property {ReactNode} children - Page components to render within the view.
*
* @property {number} selectedIndex - Index of currently selected view.
Expand All @@ -67,10 +69,6 @@ export type ViewPagerElement = React.ReactElement<ViewPagerProps>;
* @overview-example ViewPagerLazyLoading
* Each view can be loaded lazily by using `shouldLoadComponent` property.
*/

const DEFAULT_DURATION = 300;


// eslint-disable-next-line @typescript-eslint/ban-types
export class ViewPager<ChildrenProps = {}> extends React.Component<ViewPagerProps<ChildrenProps>>
implements PanResponderCallbacks {
Expand Down

0 comments on commit 3e155d8

Please sign in to comment.