-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(types): export image type declarations
release-npm
- Loading branch information
Showing
10 changed files
with
73 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
declare module '*.png' { | ||
const src: import('react-native').ImageSourcePropType | ||
export default src | ||
} | ||
|
||
declare module '*.jpg' { | ||
const src: import('react-native').ImageSourcePropType | ||
export default src | ||
} | ||
|
||
declare module '*.jpeg' { | ||
const src: import('react-native').ImageSourcePropType | ||
export default src | ||
} | ||
|
||
declare module '*.bmp' { | ||
const src: import('react-native').ImageSourcePropType | ||
export default src | ||
} | ||
|
||
// See: https://reactnative.dev/docs/image#gif-and-webp-support-on-android | ||
declare module '*.gif' { | ||
const src: import('react-native').ImageSourcePropType | ||
export default src | ||
} | ||
|
||
declare module '*.webp' { | ||
const src: import('react-native').ImageSourcePropType | ||
export default src | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters