+import React, { Component } from 'react';
+import { StyleSheet, Text, View } from 'react-native';
+const styles = StyleSheet.create({
+ justifyContent: 'center',
+ backgroundColor: '#F5FCFF'
+ header : { fontWeight: 'bold', fontSize: 20 },
+export default class LoremIpsumScreen extends Component {
+ async componentDidMount() {
+ let newTextResponse = await fetch('https://loripsum.net/api/1/short/plaintext');
+ let newText = await newTextResponse.text();
+ this.setState({ text: newText });
+ <View style={styles.container}>
+ <Text style={styles.header}>MOBILE VERSION</Text>
+ <Text style={styles.text}>{this.state.text}</Text>
+// helper function to insert delays in async functions
+ return new Promise(resolve => {