Skip to content

Commit 06d6f29

Browse files
authored
Merge pull request #23 from Gustash/fix/typescript-declarations
2 parents e84a008 + 1bdb63d commit 06d6f29

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

index.d.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
import { TextInputProps as RNTextInputProps } from "react-native";
1+
2+
import { NativeSyntheticEvent } from "react-native";
23
declare module "react-native" {
3-
export type ImageChangeEventData = {
4+
type ImageChangeEventData = {
45
uri: string;
56
data: string;
67
linkUri?: string;
78
mime?: string;
89
};
9-
export type ImageChangeEvent = NativeSyntheticEvent<ImageChangeEventData>;
10+
type ImageChangeEvent = NativeSyntheticEvent<ImageChangeEventData>;
1011

11-
export interface TextInputProps extends RNTextInputProps {
12-
onImageChange?(event: ImageChangeEvent): void;
12+
interface TextInputProps {
13+
onImageChange?: (event: ImageChangeEvent) => void;
1314
}
1415
}

0 commit comments

Comments
 (0)