import React from 'react'; import { View, ScrollView } from 'react-native'; import { SocialIcon, SocialIconProps } from 'react-native-elements'; import { Header } from '../components/header'; import { SocialMediaType } from 'react-native-elements/dist/SocialIcon/SocialIcon'; import _ from 'lodash'; type IconData = { type: SocialMediaType; iconType: string; }; const dataList: Partial[] = [ { type: 'facebook', }, { type: 'twitter', }, { type: 'google-plus-official', }, { type: 'google', }, { type: 'pinterest', }, { type: 'linkedin', }, { type: 'youtube', }, { type: 'vimeo', }, { type: 'tumblr', }, { type: 'instagram', }, { type: 'quora', }, { type: 'flickr', }, { type: 'foursquare', }, { type: 'wordpress', }, { type: 'stumbleupon', }, { type: 'github', }, { type: 'github-alt', }, { type: 'microsoft', iconType: 'material-community', }, { type: 'twitch', }, { type: 'medium', }, { type: 'soundcloud', }, { type: 'stack-overflow', }, { type: 'gitlab', }, { type: 'angellist', }, { type: 'codepen', }, { type: 'weibo', }, { type: 'vk', }, { type: 'facebook-messenger', iconType: 'material-community', }, { type: 'whatsapp', }, ]; type SocialIconsComponentProps = {}; const SocialIcons: React.FunctionComponent = () => { const socialProps = {}; return ( <>
{_.chunk(dataList, 3).map( (chunk: Partial[], chunkIndex: React.Key) => ( {chunk.map((l: Partial, i: React.Key) => ( ))} ) )} ); }; export default SocialIcons;