Pluggable ESLint configuration for Node.js that extends ESNext with Node.js-specific safety checks and best practices
73
Create a React Native component that displays a user profile card with proper styling practices.
Build a ProfileCard component that displays user information:
The component should accept user data and display:
Your implementation must follow React Native best practices for styling:
The component should:
imageUri (string), name (string), bio (string), isOnline (boolean)ProfileCardGiven valid props (imageUri="https://example.com/pic.jpg", name="John Doe", bio="Software engineer", isOnline=true), the component renders without errors @test
Given isOnline=false, the status indicator renders with gray color; given isOnline=true, it renders with green color @test
@generates
/**
* ProfileCard component displays a user profile card with image, name, bio, and online status.
*
* @param {Object} props - Component props
* @param {string} props.imageUri - URI of the profile image
* @param {string} props.name - User's name
* @param {string} props.bio - User's bio/description
* @param {boolean} props.isOnline - Whether the user is online
* @returns {React.Element} Rendered profile card component
*/
export function ProfileCard({ imageUri, name, bio, isOnline }) {
// Implementation here
}Provides the core React Native components and APIs for building mobile applications.
Provides ESLint configuration for React Native projects to enforce code quality and styling best practices.
Install with Tessl CLI
npx tessl i tessl/npm-eslint-config-nodedocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10