diff options
| author | anderklander <anderklander@gmail.com> | 2017-11-09 13:30:52 +0100 |
|---|---|---|
| committer | Erik Larkö <erik@mullvad.net> | 2017-12-14 09:16:49 +0100 |
| commit | a35898e0fafa2dae93b00ca074b810cc88a2fa71 (patch) | |
| tree | 8b85b8bbff5085e4a121e5d06af31271132ac2f0 /app/components/Img.js | |
| parent | b74910f21f720741a6b7e3e537ee637200e6a449 (diff) | |
| download | mullvadvpn-a35898e0fafa2dae93b00ca074b810cc88a2fa71.tar.xz mullvadvpn-a35898e0fafa2dae93b00ca074b810cc88a2fa71.zip | |
Reactxp starter pack
Some changes in app init and rendering the header bar in reactxp. Moved linking and exit to separate files for web/mobile
Diffstat (limited to 'app/components/Img.js')
| -rw-r--r-- | app/components/Img.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/components/Img.js b/app/components/Img.js new file mode 100644 index 0000000000..c82d96c1be --- /dev/null +++ b/app/components/Img.js @@ -0,0 +1,13 @@ +import React from 'react'; +import { View, Component } from 'reactxp'; + +export default class Img extends Component { + render(): React.Element<*> { + + const url = "./assets/images/" + this.props.source + ".svg"; + + const style = this.props.style; + + return (<View style={ style }> <img src={ url } /> </View>); + } +}
\ No newline at end of file |
