Skip to content

Instantly share code, notes, and snippets.

@zgababa
Last active February 27, 2017 16:34
Show Gist options
  • Save zgababa/de7362c3304d82f911a86481cb276d36 to your computer and use it in GitHub Desktop.
Save zgababa/de7362c3304d82f911a86481cb276d36 to your computer and use it in GitHub Desktop.
'use strict';
import React, { PropTypes } from 'react';
import Radium from 'radium';
import get from 'lodash.get';
class Screen extends React.Component {
render() {
return (
<div>
<img role="presentation" style={styles.image} src={get(this.props, 'pokemon.img')} />
</div>
);
}
}
const styles = {
image : {
position : 'absolute',
top : '200px',
left : '144px'
}
};
Screen.propTypes = {
pokemon : PropTypes.object
};
export default new Radium(Screen);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment