Skip to content

Commit 727bd2c

Browse files
committed
Improve typescript type
1 parent 9d420fe commit 727bd2c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

index.d.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
declare module 'react-native-ionicons' {
2-
import * as React from 'react'
3-
import { StyleProp } from 'react-native'
2+
import React from 'react'
3+
import { TextProps } from 'react-native'
44

5-
interface IconProps {
5+
export type IconProps = TextProps & {
66
name?: string
77
android?: string
88
ios?: string
99
color?: string
1010
size?: number
11-
style?: StyleProp<any>
1211
}
1312

1413
class Icon extends React.PureComponent<IconProps> {}

0 commit comments

Comments
 (0)