Skip to content

Commit

Permalink
Merge pull request #23 from Gustash/fix/typescript-declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustash authored Feb 20, 2022
2 parents e84a008 + 1bdb63d commit 06d6f29
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import { TextInputProps as RNTextInputProps } from "react-native";

import { NativeSyntheticEvent } from "react-native";
declare module "react-native" {
export type ImageChangeEventData = {
type ImageChangeEventData = {
uri: string;
data: string;
linkUri?: string;
mime?: string;
};
export type ImageChangeEvent = NativeSyntheticEvent<ImageChangeEventData>;
type ImageChangeEvent = NativeSyntheticEvent<ImageChangeEventData>;

export interface TextInputProps extends RNTextInputProps {
onImageChange?(event: ImageChangeEvent): void;
interface TextInputProps {
onImageChange?: (event: ImageChangeEvent) => void;
}
}

0 comments on commit 06d6f29

Please sign in to comment.