Skip to content

Commit 49938db

Browse files
authored
Create index.d.ts
1 parent 34f52bb commit 49938db

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

lib/index.d.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)