Skip to content

Commit 30fb519

Browse files
authored
Fix assets with default (#3620)
1 parent 59f5bb8 commit 30fb519

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docuilib/src/theme/ReactLiveScope/configurations.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,10 @@ import {ThemeManager} from 'react-native-ui-lib/core';
22

33
ThemeManager.setComponentForcedTheme('Icon', props => {
44
const {source} = props;
5-
return source?.source ? source : undefined;
5+
return source?.default ? {source: source.default} : source?.source ? source : undefined;
6+
});
7+
8+
ThemeManager.setComponentForcedTheme('Image', props => {
9+
const {source} = props;
10+
return source?.default ? {source: source.default} : source;
611
});

0 commit comments

Comments
 (0)