Skip to content

Commit

Permalink
Merge pull request #637 from Matergi/patch-1
Browse files Browse the repository at this point in the history
Typed "source" prop
  • Loading branch information
wonday authored Apr 3, 2022
2 parents 7b819e9 + c3a17d5 commit 0731610
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,20 @@ export type TableContent = {
title: string,
};

export type Source = {
uri?: string;
headers?: {
[key: string]: string;
};
cache?: boolean;
cacheFileName?: string;
expiration?: number;
method?: string;
};

interface Props {
style?: ReactNative.StyleProp<ReactNative.ViewStyle>,
source: object,
source: Source | number,
page?: number,
scale?: number,
minScale?: number,
Expand Down

0 comments on commit 0731610

Please sign in to comment.