Socket
Socket
Sign inDemoInstall

react-native-elements

Package Overview
Dependencies
Maintainers
5
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-elements

React Native Elements & UI Toolkit


Version published
Maintainers
5
Created

What is react-native-elements?

React Native Elements is a popular UI toolkit for React Native that provides a collection of customizable and reusable UI components. It aims to simplify the process of building mobile applications by offering a wide range of pre-built components that follow best practices and are easy to integrate.

What are react-native-elements's main functionalities?

Buttons

React Native Elements provides a variety of button types, including solid, outline, and clear buttons. These buttons are highly customizable and can be used to trigger actions or navigate within the app.

import { Button } from 'react-native-elements';

<Button
  title="Solid Button"
  type="solid"
  onPress={() => console.log('Button Pressed')}
/>

Cards

Cards are versatile containers that can hold various types of content, such as text, images, and buttons. They are useful for displaying information in a structured and visually appealing way.

import { Card } from 'react-native-elements';

<Card>
  <Card.Title>Card Title</Card.Title>
  <Card.Divider/>
  <Text>Some text inside the card</Text>
</Card>

Input

The Input component is used for text input fields. It supports various customization options, including icons, placeholders, and validation.

import { Input } from 'react-native-elements';

<Input
  placeholder="Enter your text here"
  leftIcon={{ type: 'font-awesome', name: 'user' }}
/>

Avatar

The Avatar component is used to display profile pictures or icons. It supports different shapes (rounded, square) and sizes, making it suitable for user profiles and lists.

import { Avatar } from 'react-native-elements';

<Avatar
  rounded
  source={{ uri: 'https://example.com/avatar.jpg' }}
  size="large"
/>

ListItem

The ListItem component is used to create list items with various elements like avatars, titles, and subtitles. It is useful for creating lists of data, such as contact lists or settings menus.

import { ListItem } from 'react-native-elements';

<ListItem bottomDivider>
  <Avatar source={{ uri: 'https://example.com/avatar.jpg' }} />
  <ListItem.Content>
    <ListItem.Title>John Doe</ListItem.Title>
    <ListItem.Subtitle>Software Engineer</ListItem.Subtitle>
  </ListItem.Content>
</ListItem>

Other packages similar to react-native-elements

Keywords

FAQs

Package last updated on 23 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc