Skip to content

Commit b21cf54

Browse files
committed
Fix some typings
1 parent a2ccee0 commit b21cf54

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

generatedTypes/components/drawer/Swipeable.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export declare type PropType = {
2121
onSwipeableWillOpen?: Function;
2222
onSwipeableWillClose?: Function;
2323
onFullSwipeLeft?: Function;
24+
onToggleSwipeLeft?: Function;
2425
onWillFullSwipeLeft?: Function;
2526
onFullSwipeRight?: Function;
2627
onWillFullSwipeRight?: Function;
@@ -50,6 +51,7 @@ export default class Swipeable extends Component<PropType, StateType> {
5051
fullRightThreshold: number;
5152
};
5253
constructor(props: PropType);
54+
_handleDrag: (e: any) => void;
5355
UNSAFE_componentWillUpdate(props: PropType, state: StateType): void;
5456
_updateAnimatedEvent: (props: PropType, state: StateType) => void;
5557
_onTapHandlerStateChange: ({ nativeEvent }: {
@@ -64,6 +66,7 @@ export default class Swipeable extends Component<PropType, StateType> {
6466
close: () => void;
6567
openLeft: () => void;
6668
openLeftFull: () => void;
69+
toggleLeft: () => void;
6770
openRight: () => void;
6871
openRightFull: () => void;
6972
_onRowLayout: ({ nativeEvent }: {

generatedTypes/components/touchableOpacity/index.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ declare const _default: React.ComponentClass<RNTouchableOpacityProps & Partial<R
5353
useNative?: boolean | undefined;
5454
ref?: any;
5555
} & {
56-
useCustomTheme?: boolean | undefined;
56+
useCustomTheme?: boolean | undefined; /**
57+
* throttle time in MS for onPress callback
58+
*/
5759
}, any>;
5860
export default _default;

typings/components/Hint.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import {
55
ImageSourcePropType,
66
ImageStyle,
77
StyleProp,
8-
TextStyle
8+
TextStyle,
9+
ViewStyle
910
} from 'react-native';
1011
import {BaseComponent} from '../commons';
1112
import {ColorValue} from '../style/colors';
@@ -32,6 +33,7 @@ export interface HintProps {
3233
offset?: number;
3334
onBackgroundPress?: (event: GestureResponderEvent) => void;
3435
containerWidth?: number;
36+
style?: ViewStyle;
3537
testID?: string;
3638
}
3739

0 commit comments

Comments
 (0)