We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f867dde commit 63b7fa5Copy full SHA for 63b7fa5
src/index.tsx
@@ -195,9 +195,12 @@ function FastImageBase({
195
)
196
}
197
198
+ // @ts-ignore non-typed property
199
+ const FABRIC_ENABLED = !!global?.nativeFabricUIManager;
200
+
201
// this type differs based on the `source` prop passed
202
const resolvedSource = Image.resolveAssetSource(source as any) as ImageResolvedAssetSource & {headers: any}
- if (resolvedSource?.headers) {
203
+ if (resolvedSource?.headers && (FABRIC_ENABLED || Platform.OS === 'android')) {
204
// we do it like that to trick codegen
205
const headersArray: {name: string, value: string}[] = [];
206
Object.keys(resolvedSource.headers).forEach(key => {
0 commit comments