forked from shahen94/react-native-switch
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.d.ts
36 lines (33 loc) · 1.08 KB
/
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
27
28
29
30
31
32
33
34
35
36
import { Component, ReactNode } from 'react';
import { StyleProp, TextStyle, ViewStyle } from 'react-native';
declare type SwitchProps = {
onValueChange?: (value: boolean) => void;
disabled?: boolean;
activeText?: string;
inActiveText?: string;
backgroundActive?: string;
backgroundInactive?: string;
value?: boolean;
circleActiveColor?: string;
circleInActiveColor?: string;
circleSize?: number;
circleBorderActiveColor?: string;
circleBorderInactiveColor?: string;
activeTextStyle?: StyleProp<TextStyle>;
inactiveTextStyle?: StyleProp<TextStyle>;
containerStyle?: StyleProp<ViewStyle>;
barHeight?: number;
circleBorderWidth?: number;
renderInsideCircle?: () => ReactNode;
changeValueImmediately?: boolean;
innerCircleStyle?: StyleProp<ViewStyle>;
outerCircleStyle?: StyleProp<ViewStyle>;
renderActiveText?: boolean;
renderInActiveText?: boolean;
switchLeftPx?: number;
switchRightPx?: number;
switchWidthMultiplier?: number;
switchBorderRadius?: number;
};
declare class Switch extends Component<SwitchProps> {}
export { Switch, SwitchProps };