Skip to content

Commit

Permalink
Update props, ts file
Browse files Browse the repository at this point in the history
  • Loading branch information
minhchienwikipedia committed Feb 12, 2022
1 parent fb55b9a commit 023ea8b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
31 changes: 15 additions & 16 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
declare module "react-native-swipe-up-down" {
import { StyleProp, ViewStyle } from "react-native";
export interface SwipeUpDownProps {
extraMarginTop?: number;
swipeHeight?: number;
itemMini?: object;
itemFull: object;
disableSwipeIcon?: boolean;
style?: StyleProp<ViewStyle>;
onShowMini?: () => void;
onShowFull?: () => void;
animation?: "linear" | "spring" | "easeInEaseOut" | "none";
}
const SwipeUpDown: SwipeUpDownProps;
import * as React from 'react';
import { StyleProp, ViewStyle } from "react-native";

export default SwipeUpDown;
}
interface SwipeUpDownProps {
extraMarginTop?: number;
swipeHeight?: number;
itemMini?: object;
itemFull: object;
disableSwipeIcon?: boolean;
style?: StyleProp<ViewStyle>;
onShowMini?: () => void;
onShowFull?: () => void;
animation?: "linear" | "spring" | "easeInEaseOut";
}

export default function SwipeUpDown(props: SwipeUpDownProps): JSX.Element;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-swipe-up-down",
"version": "1.1.4",
"version": "1.1.5",
"description": "Swipe Up Down component",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const SwipeUpDown = forwardRef(
style,
onShowMini,
onShowFull,
animation,
animation = "spring",
disableSwipeIcon,
},
ref
Expand Down

0 comments on commit 023ea8b

Please sign in to comment.