forked from Expensify/App
-
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.
- Loading branch information
1 parent
9647214
commit 95e49d0
Showing
5 changed files
with
57 additions
and
76 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 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 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,37 @@ | ||
import {ImageContentFit, ImageStyle} from 'expo-image'; | ||
import {StyleProp, ViewStyle} from 'react-native'; | ||
import IconAsset from '@src/types/utils/IconAsset'; | ||
|
||
type ImageSVGProps = { | ||
/** The asset to render. */ | ||
src: IconAsset; | ||
|
||
/** The width of the image. */ | ||
width?: number | `${number}%` | 'auto'; | ||
|
||
/** The height of the image. */ | ||
height?: number | `${number}%` | 'auto'; | ||
|
||
/** The fill color for the image. Can be hex, rgb, rgba, or valid react-native named color such as 'red' or 'blue'. */ | ||
fill?: string; | ||
|
||
/** Is image hovered */ | ||
hovered?: boolean; | ||
|
||
/** Is image pressed */ | ||
pressed?: boolean; | ||
|
||
/** Additional styles to add to the component */ | ||
style?: StyleProp<ViewStyle & ImageStyle>; | ||
|
||
/** Determines how the image should be resized to fit its container */ | ||
contentFit?: ImageContentFit; | ||
|
||
/** The pointer-events attribute allows us to define whether or when an element may be the target of a mouse event. */ | ||
pointerEvents?: 'box-none' | 'none' | 'box-only' | 'auto'; | ||
|
||
/** The preserveAspectRatio attribute indicates how an element with a viewBox providing a given aspect ratio must fit into a viewport with a different aspect ratio. */ | ||
preserveAspectRatio?: string; | ||
}; | ||
|
||
export default ImageSVGProps; |