Nessuna descrizione

card.js 531B

123456789101112131415161718192021222324252627
  1. import React from "react";
  2. import { StyleSheet, View } from "react-native";
  3. export default function Card(props){
  4. return (
  5. <View style = {styles.card}>
  6. <View style = {styles.cardContent}>
  7. { props.childern }
  8. </View>
  9. </View>
  10. )
  11. }
  12. const styles = StyleSheet.create({
  13. card: {
  14. borderRadius: 6,
  15. elevation: 3,
  16. backgroundColor: '#fff',
  17. shadowOffset: { width: 1, height: 1},
  18. shadowColor: '#333',
  19. shadowOpacity: 0.3,
  20. },
  21. cardContent: {
  22. },
  23. });