Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32159139
thumbhash-module.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
545 B
Referenced Files
None
Subscribers
None
thumbhash-module.js
View Options
// @flow
import
{
requireNativeModule
}
from
'expo-modules-core'
;
import
invariant
from
'invariant'
;
const
platformUtilsModule
:
{
+
generateThumbHash
:
(
photoURI
:
string
)
=>
Promise
<
string
>
,
}
=
requireNativeModule
(
'Thumbhash'
);
async
function
generateThumbHash
(
photoURI
:
string
)
:
Promise
<
string
>
{
invariant
(
platformUtilsModule
.
generateThumbHash
,
'generateThumbHash() unavailable. Check if Thumbhash expo-module is autolinked'
,
);
return
await
platformUtilsModule
.
generateThumbHash
(
photoURI
);
}
export
{
generateThumbHash
};
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Sun, Dec 7, 4:26 PM (22 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5839570
Default Alt Text
thumbhash-module.js (545 B)
Attached To
Mode
rCOMM Comm
Attached
Detach File
Event Timeline
Log In to Comment