StampTab.js 1.52 KB
import React, { Component } from 'react';
import { View, Text, StyleSheet,ScrollView } from 'react-native';
 
import StampItem from '../StampItem'
export default class AddTab extends Component {
    static navigationOptions = {
        
        headerShown: false
        
    }
    state = {
        Stamp:[
            {
                title:"네네치킨 송도신도시점",
                contents:"스탬프 10개를 모으면 아메리카노 (hot,ice) 1잔 무료제공!",
                stamp:[
                    {
                        contents:"1",
                        datetime:new Date()
                },
                {
                    contents:"1",
                    datetime:new Date()
            },
            {
                contents:"1",
                datetime:new Date()
        },
        {
            contents:"1",
            datetime:new Date()
    },
    {
        contents:"1",
        datetime:new Date()
},
{
    contents:"1",
    datetime:new Date()
},
{
    contents:"1",
    datetime:new Date()
},
{
    contents:"1",
    datetime:new Date()
},
{
    contents:"1",
    datetime:new Date()
},
{
    contents:"1",
    datetime:new Date()
}
                ],

            },
        ]
    }
    componentDidMount() {
    }
    render() {
        return (
            <ScrollView style={style.container}>
            
            {this.state.Stamp.map((e,i) => <View style={{marginBottom:8}}><StampItem item={e}/></View>)}
            </ScrollView>
        );
    }
}
 
const style = StyleSheet.create({
});