-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathindex.d.ts
26 lines (25 loc) · 880 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import React from 'react';
import { StyleProp, TextStyle, ViewStyle, TextProps } from 'react-native';
export interface ReadMoreProps extends TextProps {
seeMoreStyle?: StyleProp<TextStyle>;
seeLessStyle?: StyleProp<TextStyle>;
wrapperStyle?: StyleProp<ViewStyle>;
seeMoreText?: string;
seeLessText?: string;
animate?: boolean;
customTextComponent?: React.ReactNode;
ellipsis?: string;
onExpand?: () => void;
onCollapse?: () => void;
expandOnly?: boolean;
seeMoreOverlapCount?: number;
debounceSeeMoreCalc?: number;
onReady?: ({ canExpand: boolean, expandedLinesCount: number }) => void;
seeMoreContainerStyleSecondary?: StyleProp<ViewStyle>;
onSeeMore?: () => void;
onSeeLess?: () => void;
debug?: boolean;
collapsed?: boolean;
}
declare const ReadMore: React.FC<ReadMoreProps>;
export default ReadMore;