Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@react-navigation/elements

Package Overview
Dependencies
Maintainers
7
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-navigation/elements

UI Components for React Navigation

  • 2.2.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.1M
increased by5.49%
Maintainers
7
Weekly downloads
 
Created

What is @react-navigation/elements?

@react-navigation/elements is a package that provides customizable UI components for React Navigation, a popular library for routing and navigation in React Native applications. It includes components like headers, footers, and other UI elements that can be used to create a consistent navigation experience across your app.

What are @react-navigation/elements's main functionalities?

Header Component

The Header component allows you to create a customizable header for your screens. You can set the title, style, and other properties to match your app's design.

import { Header } from '@react-navigation/elements';

const MyHeader = () => (
  <Header
    title="My Screen"
    headerStyle={{ backgroundColor: '#f4511e' }}
    headerTintColor="#fff"
    headerTitleStyle={{ fontWeight: 'bold' }}
  />
);

Footer Component

The Footer component allows you to add a footer to your screens. You can customize its style and content to fit your app's needs.

import { Footer } from '@react-navigation/elements';

const MyFooter = () => (
  <Footer
    footerStyle={{ backgroundColor: '#f4511e' }}
    footerTintColor="#fff"
  >
    <Text style={{ color: '#fff' }}>Footer Content</Text>
  </Footer>
);

Customizable Back Button

The HeaderBackButton component provides a customizable back button for your navigation headers. You can set its appearance and behavior to match your app's design.

import { HeaderBackButton } from '@react-navigation/elements';

const MyBackButton = ({ navigation }) => (
  <HeaderBackButton
    onPress={() => navigation.goBack()}
    tintColor="#fff"
  />
);

Other packages similar to @react-navigation/elements

Keywords

FAQs

Package last updated on 02 Dec 2024

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