Skip to content

Commit 5f531c7

Browse files
committed
feat: align js code with spec
1 parent 46490f7 commit 5f531c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ function FastImageBase({
196196

197197
const resolvedSource = Image.resolveAssetSource(source as any)
198198
const resolvedDefaultSource = resolveDefaultSource(defaultSource)
199+
const resolvedDefaultSourceAsString = resolvedDefaultSource !== null ? String(resolvedDefaultSource) : null;
199200

200201
return (
201202
<View style={[styles.imageContainer, style]} ref={forwardedRef}>
@@ -204,7 +205,7 @@ function FastImageBase({
204205
tintColor={tintColor}
205206
style={StyleSheet.absoluteFill}
206207
source={resolvedSource}
207-
defaultSource={resolvedDefaultSource}
208+
defaultSource={resolvedDefaultSourceAsString}
208209
onFastImageLoadStart={onLoadStart}
209210
onFastImageProgress={onProgress}
210211
onFastImageLoad={onLoad}

0 commit comments

Comments
 (0)