Hi there, thanks for the library! I'm running into issues getting an Image element to work. I've added 'file-loader' plugin to my .babelrc and the file path is successfully loaded and prints out within a componentDidMount() here's my code:
import React, {Component} from 'react';
import logo from '../img/logo.png';
class App extends Component {
render() {
return (
<box width={'100%'} height={'100%'} style={{ bg: 'white'}}>
<image
top={40}
left={40}
file={logo} />
</box>
);
}
}
Hi there, thanks for the library! I'm running into issues getting an Image element to work. I've added 'file-loader' plugin to my .babelrc and the file path is successfully loaded and prints out within a componentDidMount() here's my code:
Any ideas?