We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34f52bb commit 49938dbCopy full SHA for 49938db
1 file changed
lib/index.d.ts
@@ -0,0 +1,18 @@
1
+declare module 'react-native-switch-pro' {
2
+ import { Component } from 'react';
3
+ import { StyleProp, ViewStyle } from 'react-native';
4
+ export interface SwitchProps {
5
+ width?: number;
6
+ height?: number;
7
+ value?: boolean;
8
+ disabled?: boolean;
9
+ circleColorActive?: string;
10
+ circleColorInactive?: string;
11
+ onAsyncPress?: (cb: (result: boolean) => void) => void;
12
+ onSyncPress?: (value: boolean) => void;
13
+ style?: StyleProp<ViewStyle>;
14
+ circleStyle?: StyleProp<ViewStyle>;
15
+ }
16
+
17
+ export default class Switch extends Component<SwitchProps> {}
18
+}
0 commit comments