We want to move beyond traditional keyword search. Your task is to design and build a React Native application that acts as an "AI Product Advisor." A user should be able to describe their needs in plain English, and the application should intelligently recommend the best products for them.
Core Requirements:
Build a React Native Application: Create a user interface where a user can input a natural language query (e.g., "I need a lightweight laptop for travel with a long battery life").
Use the Provided Catalog: We have provided a sample
PRODUCT_CATALOG (as a JavaScript array of objects). Your app should use this as its "database" of available products.
Integrate a Generative AI Model: When the user submits their query, your application must make an API call to a large language model (e.g., Google's Gemini). You will need to construct a prompt that enables the AI to compare the user's request against the product catalog.
Display the Recommendations: Creatively display the AI's product recommendations to the user. The "why" behind a recommendation is just as important as the recommendation itself.
What We're Looking For:
We're interested in your approach to problem-solving. Show us your skills in:
UI/UX & Creativity: How do you make this a polished and intuitive experience?
Code Quality & Architecture: How do you structure your React Native application?
API & State Management: How do you handle asynchronous calls and manage the application's state?