Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
R
react-native-fast-image
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
react-native-fast-image
Commits
0c7e323e
Commit
0c7e323e
authored
Sep 23, 2018
by
Emanuel Quimper
Committed by
Dylan Vann
Sep 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add cache enum types.
parent
b8c82c7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
src/index.d.ts
src/index.d.ts
+18
-0
No files found.
src/index.d.ts
View file @
0c7e323e
...
...
@@ -16,6 +16,12 @@ declare namespace FastImage {
type
stretch
=
'
stretch
'
type
center
=
'
center
'
}
namespace
cache
{
type
cacheOnly
=
'
cacheOnly
'
type
immutable
=
'
immutable
'
type
web
=
'
web
'
}
export
type
Priority
=
FastImage
.
priority
.
low
|
...
...
@@ -27,12 +33,18 @@ declare namespace FastImage {
FastImage
.
resizeMode
.
cover
|
FastImage
.
resizeMode
.
stretch
|
FastImage
.
resizeMode
.
center
export
type
Cache
=
FastImage
.
cache
.
cacheOnly
|
FastImage
.
cache
.
immutable
|
FastImage
.
cache
.
web
}
export
type
FastImageSource
=
{
uri
?:
string
headers
?:
{[
key
:
string
]:
string
}
priority
?:
FastImage
.
Priority
cache
?:
FastImage
.
Cache
}
export
interface
ImageStyle
extends
FlexStyle
,
TransformsStyle
,
ShadowStyleIOS
{
...
...
@@ -112,6 +124,12 @@ interface FastImageStatic extends React.ComponentClass<FastImageProperties> {
normal
:
FastImage
.
priority
.
normal
high
:
FastImage
.
priority
.
high
}
cache
:
{
cacheOnly
:
FastImage
.
cache
.
cacheOnly
immutable
:
FastImage
.
cache
.
immutable
web
:
FastImage
.
cache
.
web
}
preload
(
sources
:
FastImageSource
[]):
void
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment