- 
									Details							
 
			
			
			
			
			
		
					
			
						
	
	
		
								
		import React from 'react';
import {Text, View, StyleSheet} from 'react-native';
const styles = StyleSheet.create({
  center: {
    alignItems: 'center',
  },
});
type GreetingProps = {
  name: string;
};
const Greeting = (props: GreetingProps) => {
  return (
    <View style={styles.center}>
      <Text>Hello {props.name}!</Text>
    </View>
  );
};
const LotsOfGreetings = () => {
  return (
    <View style={[styles.center, {top: 50}]}>
      <Greeting name="Bob" />
      <Greeting name="James" />
      <Greeting name="Fred" />
    </View>
  );
};