Home
last modified time | relevance | path

Searched refs:thumbhash (Results 1 – 25 of 39) sorted by relevance

12

/expo/apps/native-component-list/src/constants/
H A DComparisonImages.ts6 thumbhash: string;
17 thumbhash: '1EgOHYQImHiZZ4iCe3eWeAinolA8',
22 thumbhash: '5xcSHQZpeI94KIenaHhoh2ufo/Y4',
27 thumbhash: 'EQgKHQZlh2122Hb4dm2Gh2hwkQc3',
42 thumbhash: 'JRkaPQh4d394V4doeHd3h3iAgAcI',
47 thumbhash: 'JtcRFQR6d3+IaIZYeXWHd28h+naS',
52 thumbhash: 'yPcFDQJ3d3mHB4hIiH23R5eAfxn4',
57 thumbhash: 'HHsOPQYIpnt2WHdnl4eYh4hzgA4n',
62 thumbhash: 'nRkWLQh4eHB3h3iId3d3iHhwiAl4',
67 thumbhash: 'YecNDQJpiI+Hh3h3eIdnWFyVv3f4',
[all …]
/expo/packages/expo-image/ios/
H A DThumbhashLoader.swift27 var thumbhash = (url.pathComponents[1] ?? "").replacingOccurrences(of: "\\", with: "/") variable
30 let remainder = thumbhash.count % 4
32 …thumbhash = thumbhash.padding(toLength: thumbhash.count + 4 - remainder, withPad: "=", startingAt:…
35 …guard !thumbhash.isEmpty, let thumbhashData = Data(base64Encoded: thumbhash, options: .ignoreUnkno…
/expo/ios/versioned/sdk49/ExpoImage/
H A DThumbhashLoader.swift27 var thumbhash = (url.pathComponents[1] ?? "").replacingOccurrences(of: "\\", with: "/") variable
30 let remainder = thumbhash.count % 4
32 …thumbhash = thumbhash.padding(toLength: thumbhash.count + 4 - remainder, withPad: "=", startingAt:…
35 …guard !thumbhash.isEmpty, let thumbhashData = Data(base64Encoded: thumbhash, options: .ignoreUnkno…
/expo/packages/expo-image/android/src/main/java/expo/modules/image/thumbhash/
H A DThumbhashFetcher.kt1 package expo.modules.image.thumbhash
10 class ThumbhashDecodingFailure(thumbhash: String?, cause: Exception?) : CodedException(
11 message = "Cannot decode provided thumbhash '$thumbhash' $cause"
15 private val thumbhash: String? constant in ThumbhashFetcher
24 val decodedThumbhash = Base64.decode(thumbhash, Base64.DEFAULT) in cleanup()
28 callback.onLoadFailed(ThumbhashDecodingFailure(thumbhash, e)) in cleanup()
H A DThumbhashModelLoader.kt1 package expo.modules.image.thumbhash
19 val thumbhash = model.uri.pathSegments.joinToString(separator = "/").replace("\\", "/") in handles() constant
23 ThumbhashFetcher(thumbhash) in handles()
H A DThumbhashModelLoaderFactory.kt1 package expo.modules.image.thumbhash
H A DThumbhashModule.kt1 package expo.modules.image.thumbhash
/expo/packages/expo-image/src/utils/
H A DresolveHashString.tsx3 type ImageHashType = 'blurhash' | 'thumbhash';
25 * Converts a thumbhash string (`thumbhash:/<hash>` or `<hash>`) into an `ImageSource`.
27 * @return An ImageSource representing the provided thumbhash.
32 const thumbhash = str.replace(/^thumbhash:\//, '').replace(/\//g, '\\');
34 uri: hashToUri('thumbhash', thumbhash),
H A DresolveHashString.web.tsx21 * Converts a string in thumbhash format (`thumbhash:/<hash>` or `<hash>`)
23 * Note: Unlike the `resolveBlurhashString` the `thumbhash:/` scheme has to be present,
24 * as the scheme has to be explicitly stated to be interpreted a `thumbhash` source.
26 * @return An ImageSource representing the provided thumbhash.
29 const hash = str.replace(/^thumbhash:\//, '');
31 uri: 'thumbhash:/' + hash,
H A DresolveSources.tsx10 // interpret as thumbhash only if correct uri scheme is provided
12 return str.startsWith('thumbhash:/');
27 if (typeof source === 'object' && (source?.blurhash || source?.thumbhash)) {
28 const { blurhash, thumbhash, ...restSource } = source;
29 const resolved = thumbhash
30 ? resolveThumbhashString(thumbhash)
/expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/expo/modules/image/thumbhash/
H A DThumbhashFetcher.kt1 package abi49_0_0.expo.modules.image.thumbhash
10 class ThumbhashDecodingFailure(thumbhash: String?, cause: Exception?) : CodedException(
11 message = "Cannot decode provided thumbhash '$thumbhash' $cause"
15 private val thumbhash: String? constant in ThumbhashFetcher
24 val decodedThumbhash = Base64.decode(thumbhash, Base64.DEFAULT) in cleanup()
28 callback.onLoadFailed(ThumbhashDecodingFailure(thumbhash, e)) in cleanup()
H A DThumbhashModelLoader.kt1 package abi49_0_0.expo.modules.image.thumbhash
19 val thumbhash = model.uri.pathSegments.joinToString(separator = "/").replace("\\", "/") in handles() constant
23 ThumbhashFetcher(thumbhash) in handles()
H A DThumbhashModelLoaderFactory.kt1 package abi49_0_0.expo.modules.image.thumbhash
/expo/packages/expo-image/build/utils/
H A DresolveSources.js24 if (typeof source === 'object' && (source?.blurhash || source?.thumbhash)) {
25 const { blurhash, thumbhash, ...restSource } = source;
26 const resolved = thumbhash
27 ? resolveThumbhashString(thumbhash)
H A DresolveHashString.web.js.map1 …thumbhash format (`thumbhash:/<hash>` or `<hash>`)\n * into an `ImageSource`.\n * Note: Unlike the…
H A DresolveHashString.js.map1 …thumbhash';\n\nfunction hashToUri(type: ImageHashType, hash: string): string {\n const encodedBlu…
H A DresolveHashString.js26 const thumbhash = str.replace(/^thumbhash:\//, '').replace(/\//g, '\\');
28 uri: hashToUri('thumbhash', thumbhash),
H A DresolveSources.js.map1 …thumbhash only if correct uri scheme is provided\nexport function isThumbhashString(str: string): …
/expo/packages/expo-image/build/web/
H A Dhooks.js12 const thumbhash = useThumbhash(source);
15 resolvedSource: blurhash ?? thumbhash ?? source,
16 isImageHash: !!blurhash || !!thumbhash,
17 }), [blurhash, thumbhash]);
H A Dhooks.js.map1 …thumbhash/thumbhash';\n\nexport function useThumbhash(source: ImageSource | null | undefined) {\n …
/expo/packages/expo-image/src/web/
H A Dhooks.ts20 const thumbhash = useThumbhash(source); constant
24 resolvedSource: blurhash ?? thumbhash ?? source,
25 isImageHash: !!blurhash || !!thumbhash,
27 [blurhash, thumbhash]
/expo/apps/native-component-list/src/components/HashPlaceholdersDemo/
H A DComparisonRow.tsx10 thumbhash: string;
18 thumbhash,
32 placeholder={{ thumbhash }}
/expo/packages/expo-image/build/utils/thumbhash/
H A Dthumbhash.d.ts.map1 {"version":3,"file":"thumbhash.d.ts","sourceRoot":"","sources":["../../../src/utils/thumbhash/thumb…
H A Dthumbhash.d.ts65 export declare function thumbHashStringToDataURL(thumbhash: string): string;
/expo/apps/native-component-list/src/screens/Image/
H A DImageHashPlaceholdersScreen.tsx23 thumbhash={item.thumbhash}
26 key={item.blurhash + item.thumbhash}

12