import React, { Component } from 'react'; import { StyleSheet, View, } from 'react-native'; import ScrollableContainer from '../components/scrollableContainer' import ClearText from '../components/text' export default class Credits extends Component { constructor(props) { super() } render() { // let body = '

' + this.props.content.body + '

' let credits = this.props.content.body.split('\n').map( (s,i) => { s = s.replace('\r', '') if (s.match('~')) { s = s.replace('~ ', '').toUpperCase() style = styles.smallText } else { style = styles.text } return ( {s} ) }) return ( {credits} ) } } const styles = StyleSheet.create({ body: { width: '75%', alignItems: 'center', paddingBottom: 200, }, smallText: { fontWeight: 'bold', fontSize: 13, marginTop: 20, }, text: { }, })