export default SwipeRow;
/**
* Row that is generally used in a SwipeListView.
* If you are rendering a SwipeRow explicitly you must pass the SwipeRow exactly two children.
* The first will be rendered behind the second.
* e.g.
*/
declare class SwipeRow extends React.Component {
static getDerivedStateFromProps(nextProps: any, prevState: any): any;
constructor(props: any);
isOpen: boolean;
leftActionActivated: boolean;
rightActionActivated: boolean;
previousTrackedTranslateX: number;
currentTranslateX: number;
previousTrackedDirection: any;
horizontalSwipeGestureBegan: boolean;
swipeInitialX: number;
parentScrollEnabled: boolean;
ranPreview: boolean;
_ensureScrollEnabledTimer: NodeJS.Timeout;
isForceClosing: boolean;
state: {
leftActionActivated: boolean;
rightActionActivated: boolean;
leftActionState: any;
rightActionState: any;
previewRepeatInterval: any;
timeBetweenPreviewRepeats: any;
dimensionsSet: boolean;
hiddenHeight: string | number;
hiddenWidth: string | number;
};
_translateX: Animated.Value;
_panResponder: import("react-native").PanResponderInstance;
componentWillUnmount(): void;
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
getPreviewAnimation(toValue: any, delay: any): Animated.CompositeAnimation;
onContentLayout(e: any): void;
doFullAnimation(): void;
onRowPress(): void;
handleOnMoveShouldSetPanResponder(e: any, gs: any): boolean;
handlePanResponderMove(e: any, gestureState: any): void;
ensureScrollEnabled: () => void;
handlePanResponderRelease(e: any, gestureState: any): void;
handlePanResponderEnd(e: any, gestureState: any): void;
handleRightSwipe(projectedExtraPixels: any): void;
handleLeftSwipe(projectedExtraPixels: any): void;
determineAction(actionSide: any): () => void;
closeRow(): void;
/**
* Force close the row toward the end of the given direction.
* @param {String} direction The direction to force close.
*/
forceCloseRow(direction: string): void;
closeRowWithoutAnimation(): void;
manuallySwipeRow(toValue: any, onAnimationEnd: any): void;
combinedOnPress: (...args: any[]) => void;
renderVisibleContent(): React.JSX.Element;
renderRowContent(): React.JSX.Element;
render(): React.JSX.Element;
}
declare namespace SwipeRow {
namespace propTypes {
let setScrollEnabled: PropTypes.Requireable<(...args: any[]) => any>;
let swipeGestureBegan: PropTypes.Requireable<(...args: any[]) => any>;
let swipeGestureEnded: PropTypes.Requireable<(...args: any[]) => any>;
let onRowOpen: PropTypes.Requireable<(...args: any[]) => any>;
let onRowDidOpen: PropTypes.Requireable<(...args: any[]) => any>;
let leftOpenValue: PropTypes.Requireable;
let rightOpenValue: PropTypes.Requireable;
let leftActivationValue: PropTypes.Requireable;
let rightActivationValue: PropTypes.Requireable;
let leftActionValue: PropTypes.Requireable;
let rightActionValue: PropTypes.Requireable;
let initialLeftActionState: PropTypes.Requireable;
let initialRightActionState: PropTypes.Requireable;
let stopLeftSwipe: PropTypes.Requireable;
let stopRightSwipe: PropTypes.Requireable;
let friction: PropTypes.Requireable;
let tension: PropTypes.Requireable;
let restSpeedThreshold: PropTypes.Requireable;
let restDisplacementThreshold: PropTypes.Requireable;
let closeOnRowPress: PropTypes.Requireable;
let disableLeftSwipe: PropTypes.Requireable;
let disableRightSwipe: PropTypes.Requireable;
let recalculateHiddenLayout: PropTypes.Requireable;
let disableHiddenLayoutCalculation: PropTypes.Requireable;
let onRowClose: PropTypes.Requireable<(...args: any[]) => any>;
let onRowDidClose: PropTypes.Requireable<(...args: any[]) => any>;
let onLeftAction: PropTypes.Requireable<(...args: any[]) => any>;
let onRightAction: PropTypes.Requireable<(...args: any[]) => any>;
let onLeftActionStatusChange: PropTypes.Requireable<(...args: any[]) => any>;
let onRightActionStatusChange: PropTypes.Requireable<(...args: any[]) => any>;
let style: PropTypes.Requireable