University of San Diego Creation of An App Using Expo Lab Report Create an App using expo that does the following – Displays 5 Students or Staff – Displa

University of San Diego Creation of An App Using Expo Lab Report Create an App using expo that does the following

– Displays 5 Students or Staff

– Displays their name, title(student/faculty/staff), and email

– Must use a Custom Component called “Person”

– Must use at least 1 piece of styling code

Submit a link to your expo snack

Include Images for each Student/Staff

This is an example that helps:

import React, { Component } from ‘react’;

import { Text, View, StyleSheet,ScrollView,Image } from ‘react-native’;

import { Constants } from ‘expo’;

const assets = {

egg: require(‘./images/egg.jpg’),

bagel: require(‘./images/bagel.jpg’),

taco: require(‘./images/taco.jpg’),

padthai: require(‘./images/pad-thai.jpg’),

pizza: require(‘./images/pizza.jpg’),

rendang: require(‘./images/rendang.jpg’),

icecream: require(‘./images/icecream.jpg’),

muffin: require(‘./images/muffin.jpg’),

lavacake: require(‘./images/lavacake.jpg’),

steak: require(‘./images/steak.jpg’),

chickenwings: require(‘./images/chickenwings.jpg’),

};

class FoodItem extends Component {

render() {

return (

{this.props.foodname}

{this.props.description}

);

}

}

export default class App extends Component {

render() {

return (

Scroll to see more Food

);

}

}

const styles = StyleSheet.create({

container: {

flex: 1,

flexDirection: ‘row’,

alignItems: ‘center’,

backgroundColor: ‘#ffffff’,

justifyContent: ‘space-between’,

padding: 10,

height:120,

margin: 2,

borderWidth: 1,

},

icon:{

flex:.2,

resizeMode:”contain”

},

name:{

marginLeft:5,

flex:.4,

fontSize:30,

fontWeight:’bold’,

},

description:{

fontSize:20,

flex:.4,

fontStyle:’italic’,

}

});

Submit a Comment