Open viniciusfont opened 4 years ago
renderImage is not called when setting an empty url on the imageUrls element property. The url is fetched async inside the ImageMessage custom component The props is never printed on the console
const images = messages .filter(message => message.type === 'image') .map(message => { return { props: { message: message, }, }; });
renderImage={props => { console.log('props', props); const {message} = props; return <ImageMessage message={message} />; }}
The library uses the url for calculate the 'height' and the 'width' of the child component. How can I change the image size async?
renderImage is not called when setting an empty url on the imageUrls element property. The url is fetched async inside the ImageMessage custom component The props is never printed on the console