import * as React from 'react'; import { Progress } from 'native-base'; import { View, ViewStyle, StyleProp } from 'react-native'; import { Ionicons } from '@expo/vector-icons'; import { scoreAtom } from './Play/PlayScore'; import { useAtom } from 'jotai'; export interface StarProgressProps { max: number; starSteps: number[]; style?: StyleProp; } const StarProgress = (props: StarProgressProps) => { const [score] = useAtom(scoreAtom); return ( {props.starSteps.map((step) => { return ( ); })} ); }; export default StarProgress;