import React from 'react';
import { View } from 'react-native';
import { withCMSProvider } from './CMSProvider';
import { CMSBanner } from './CMSBanner';
class CMSBannerStacked extends CMSBanner {
    render() {
        const { cmsData } = this.props;
        if (!cmsData || !cmsData.instances) {
            return null;
        }
        return (<View style={this.props.style}>
        {cmsData.instances.map((instance, i) => this.renderInstance(instance, i))}
      </View>);
    }
}
const WrappedCMSBannerStacked = withCMSProvider(CMSBannerStacked);
export { WrappedCMSBannerStacked as CMSBannerStacked };
//# sourceMappingURL=CMSBannerStacked.js.map