import React, { FC, memo } from 'react'; import { View, useWindowDimensions } from 'react-native'; import { StoryProgressProps } from '../../core/dto/componentsDTO'; import ProgressStyles from './Progress.styles'; import ProgressItem from './item'; const Progress: FC = ( { progress, active, activeStory, length, progressActiveColor, progressColor, } ) => { const { width: WIDTH } = useWindowDimensions() const width = ( ( WIDTH - ProgressStyles.container.left * 2 ) - ( length - 1 ) * ProgressStyles.container.gap ) / length; return ( {[ ...Array( length ).keys() ].map( ( val ) => ( ) )} ); }; export default memo( Progress );