() => { const [item, setItem] = useState(0) return ( <TabBar items={['active', 'archived']} activeItem={item} onPress={item => setItem(item)} /> )}