import React, { FC, useContext } from 'react'; import { View } from 'react-native'; import { ChildPaginationProps } from './types'; import styles from './styles'; import Dot from './Dot'; import { Colors, Spacing } from '../Consts'; import { MiniAppContext } from '../Context'; const PaginationWhiteDot: FC = ({ dataLength = 2, activeIndex = 0, style, }) => { const context = useContext(MiniAppContext); const showBaseLineDebug = context?.features?.showBaseLineDebug ?? false; const renderDots = () => { const dots: React.ReactElement[] = []; for (let i = 0; i < dataLength; i++) { dots.push( , ); } return dots; }; return ( {renderDots()} ); }; export default PaginationWhiteDot;