-
Notifications
You must be signed in to change notification settings - Fork 172
/
index.d.ts
37 lines (35 loc) · 1.17 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
37
declare module 'react-native-switch' {
import { Component, ReactNode } from 'react';
import { StyleProp, TextStyle, ViewStyle } from 'react-native';
export interface 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;
testID?: string;
}
export class Switch extends Component<SwitchProps> {}
}