Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
{
itemData.isImage
?
{
this.setState({
isFullImage: !this.state.isFullImage,
})
}}>
this._onProgress(e.nativeEvent.loaded,e.nativeEvent.total)}
/>
: null
}
return dataSource.map((item, i) => {
console.log(item);
return (
{
navigate('WelfarePicture',{
title:'图片详情',
url:item.largeUrl,
isVisible:true
});
}}
>
<img style="{{">
);
}, this);
};
function renderLogo(item: AppMetadata) {
if (item.package) {
return h(Image, {
source: {
uri: `http://localhost:8182/icon/${item.package}.png`,
},
style: styles.logo,
});
} else {
return h(Progress.CircleSnail, {
indeterminate: true,
size: 40,
color: palette.mainGreen,
});
}
}
h(View, { style: styles.appDetails }, [
renderTitle(item),
renderSubtitle(item),
]),
]),
]);
},
});
} else {
return placeholder;
}
}
}
const beforeReady = h(View, { style: styles.container }, [
h(Progress.CircleSnail, {
style: styles.beforeReadySpinner,
indeterminate: true,
size: 100,
color: palette.mainGreen,
}),
h(Text, { style: styles.info }, "Starting up..."),
]);
function renderWhenReady(state: State) {
return h(View, { style: styles.container }, [
h(AppList, { selector: "appList", apps: state.apps }),
h(ActionButton, {
selector: "addApp",
buttonColor: "rgb(25, 158, 51)",
}),
]);