npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@egintegrations/mobile-header

v1.0.0

Published

A flexible, customizable header component for React Native applications with interchangeable logo support

Readme

@egintegrations/mobile-header

A flexible, customizable header component for React Native applications with interchangeable logo support.

Features

  • Interchangeable Logo: Easily swap logos via props
  • Three-Section Layout: Left, center, and right content slots
  • Safe Area Support: Automatic iOS status bar padding
  • Customizable Styling: Colors, heights, shadows
  • TypeScript: Full type safety
  • Zero Dependencies: Only requires React Native core
  • Helper Components: Includes BackButton and MenuButton

Installation

npm install @egintegrations/mobile-header

or

yarn add @egintegrations/mobile-header

Basic Usage

Simple Logo Header

import { Header } from '@egintegrations/mobile-header';

function App() {
  return (
    <Header
      logo={require('./assets/logo.png')}
    />
  );
}

With Remote Logo

<Header
  logo={{ uri: 'https://example.com/logo.png' }}
  logoWidth={150}
  logoHeight={50}
/>

With Navigation Controls

import { Header, BackButton, MenuButton } from '@egintegrations/mobile-header';
import { useNavigation } from '@react-navigation/native';

function Screen() {
  const navigation = useNavigation();

  return (
    <Header
      logo={require('./assets/logo.png')}
      leftContent={<BackButton onPress={() => navigation.goBack()} />}
      rightContent={<MenuButton onPress={() => navigation.openDrawer()} />}
      backgroundColor="#1E40AF"
    />
  );
}

Custom Center Content

<Header
  centerContent={
    <Text style={{ color: 'white', fontSize: 20, fontWeight: 'bold' }}>
      My App Name
    </Text>
  }
  backgroundColor="#059669"
/>

With Custom Actions

import { TouchableOpacity, Text } from 'react-native';

<Header
  logo={require('./assets/logo.png')}
  rightContent={
    <TouchableOpacity onPress={() => alert('Notifications')}>
      <Text style={{ fontSize: 24 }}>🔔</Text>
    </TouchableOpacity>
  }
/>

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | logo | ImageSourcePropType | undefined | Logo image source (local or remote) | | logoWidth | number | 120 | Width of the logo image | | logoHeight | number | 40 | Height of the logo image | | centerContent | React.ReactNode | undefined | Custom content for center (replaces logo) | | leftContent | React.ReactNode | undefined | Content for left side (back button, menu, etc.) | | rightContent | React.ReactNode | undefined | Content for right side (profile, notifications, etc.) | | backgroundColor | string | '#FFFFFF' | Background color of the header | | height | number | 60 | Height of the header (excluding status bar) | | includeStatusBarPadding | boolean | true | Add padding for iOS status bar | | showShadow | boolean | true | Show bottom shadow/elevation | | style | ViewStyle | undefined | Custom style for container | | logoStyle | ImageStyle | undefined | Custom style for logo image |

Helper Components

BackButton

import { BackButton } from '@egintegrations/mobile-header';

<BackButton
  onPress={() => navigation.goBack()}
  color="#000000"
/>

MenuButton

import { MenuButton } from '@egintegrations/mobile-header';

<MenuButton
  onPress={() => navigation.openDrawer()}
  color="#000000"
/>

Complete Example

import React from 'react';
import { View, TouchableOpacity, Text } from 'react-native';
import { Header, BackButton } from '@egintegrations/mobile-header';

export default function ProfileScreen({ navigation }) {
  return (
    <View style={{ flex: 1 }}>
      <Header
        // Logo
        logo={require('./assets/company-logo.png')}
        logoWidth={140}
        logoHeight={45}

        // Left side - Back button
        leftContent={
          <BackButton
            onPress={() => navigation.goBack()}
            color="#1F2937"
          />
        }

        // Right side - Settings button
        rightContent={
          <TouchableOpacity onPress={() => navigation.navigate('Settings')}>
            <Text style={{ fontSize: 24 }}>⚙️</Text>
          </TouchableOpacity>
        }

        // Styling
        backgroundColor="#F3F4F6"
        height={65}
        showShadow={true}
      />

      {/* Your screen content */}
    </View>
  );
}

Styling Tips

Transparent Header

<Header
  logo={require('./logo.png')}
  backgroundColor="transparent"
  showShadow={false}
/>

Colored Header

<Header
  logo={{ uri: 'https://example.com/white-logo.png' }}
  backgroundColor="#1E3A8A"
  showShadow={true}
/>

Tall Header

<Header
  logo={require('./logo.png')}
  height={80}
  logoHeight={60}
/>

Platform Differences

  • iOS: Automatically includes status bar padding
  • Android: No status bar padding (controlled by includeStatusBarPadding)
  • Shadows: Uses shadowColor on iOS, elevation on Android

License

MIT

Contributing

See CONTRIBUTING.md

Support