Socket
Socket
Sign inDemoInstall

@react-navigation/elements

Package Overview
Dependencies
1
Maintainers
6
Versions
82
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @react-navigation/elements

UI Components for React Navigation


Version published
Weekly downloads
751K
increased by0.3%
Maintainers
6
Created
Weekly downloads
 

Package description

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

Readme

Source

@react-navigation/elements

UI Components for React Navigation.

Installation instructions and documentation can be found on the React Navigation website.

Keywords

FAQs

Last updated on 17 Nov 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc