diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-06-01 19:47:08 -0400 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-06-01 19:47:08 -0400 |
| commit | 3e72bfa56c860826429a842f6c128d78d4a930db (patch) | |
| tree | 3cecd31c92d53fae32e9761b80802c82f3dcb7fa /client/src/lib/views/credits.js | |
| parent | b694bd511ceccd00d4a4c98f36f910d5fc5f79c4 (diff) | |
react-native-web port of fmf app
Diffstat (limited to 'client/src/lib/views/credits.js')
| -rw-r--r-- | client/src/lib/views/credits.js | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/client/src/lib/views/credits.js b/client/src/lib/views/credits.js new file mode 100644 index 0000000..dbe516b --- /dev/null +++ b/client/src/lib/views/credits.js @@ -0,0 +1,34 @@ +import React, { Component } from 'react'; +import { + StyleSheet, + View, +} from 'react-native'; +import HTMLView from 'react-native-htmlview' + +import htmlStyles from '../components/htmlStyles' +import ScrollableContainer from '../components/scrollableContainer' +import ClearText from '../components/text' + +export default class Credits extends Component { + constructor(props) { + super() + } + render() { + let body = '<p>' + this.props.content.body + '</p>' + return ( + <ScrollableContainer heading='Credits'> + <View style={styles.body}> + <View style={styles.inner}> + <HTMLView value={body} stylesheet={htmlStyles} onLinkPress={this.props.onLinkPress} /> + </View> + </View> + </ScrollableContainer> + ) + } +} + +const styles = StyleSheet.create({ + body: { + maxWidth: '650px', + }, +}) |
