A framework for building native apps using React
Overall
score
100%
Evaluation — 100%
↑ 1.06xAgent success when using this tile
Build a mobile product catalog viewer that displays products in different list formats. The viewer should support both a simple flat list and a categorized list with sections.
Create a screen that displays all products in a single scrollable list. Each product should display:
The list must efficiently handle long lists of products (100+ items) with smooth scrolling performance.
Create a screen that displays products organized by category sections. Requirements:
Use the following data structure for products:
interface Product {
id: string;
name: string;
price: number;
category: string;
}Both list views should support pull-to-refresh functionality. When the user pulls down at the top of the list, simulate reloading the data (you can use a simple timeout to simulate a network request).
@generates
import React from 'react';
interface Product {
id: string;
name: string;
price: number;
category: string;
}
/**
* Displays products in a flat, scrollable list with pull-to-refresh
*/
export function FlatProductList(props: { products: Product[] }): React.JSX.Element;
/**
* Displays products organized by category sections with sticky headers and pull-to-refresh
*/
export function SectionProductList(props: { products: Product[] }): React.JSX.Element;Provides mobile UI components and list rendering capabilities.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-react-native@1000.0.0docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10