
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
react-native-app-header
Advanced tools
React Native App Header is a customizable component for React Native applications that allows you to easily implement a header bar at the top of your app screens. This header can contain titles, icons, or any other elements.
React Native App Header is a customizable component for React Native applications that allows you to easily implement a header bar at the top of your app screens. This header can contain titles, icons, or any other elements.
You can install react-native-app-header via npm by running the following command in your React Native project directory:
npm install react-native-app-header
import AppHeader from 'react-native-app-header'
import { FontAwesome } from "react-native-vector-icons";
function App({navigation}) {
return <AppHeader
headerType="MainHeader"
title="Home"
headerColor="red"
iconColor="white"
titleColor="white"
firstIcon={
<FontAwesome name="plus-square-o" size={24} color="white" />
}
firstonClick={() => navigation.navigate("Help")}
secondIcon={
<FontAwesome name="question-circle-o" size={24} color="white" />
}
secondonClick={()=>navigation.navigate("AddUser")}
/>}
/>
}
import AppHeader from 'react-native-app-header'
import { FontAwesome } from "react-native-vector-icons";
function App({navigation}) {
return <AppHeader
headerType="SubHeader"
onBack={()=>navigation.goBack()}
title="About"
headerColor="red"
iconColor="white"
titleColor="white"
firstIcon={
<FontAwesome name="plus-square-o" size={24} color="white" />
}
firstonClick={() => navigation.navigate("Help")}
secondIcon={
<FontAwesome name="question-circle-o" size={24} color="white" />
}
secondonClick={()=>navigation.navigate("AddUser")}
/>}
/>
}
import AppHeader from 'react-native-app-header'
import { FontAwesome } from "react-native-vector-icons";
import LOGO from '../assets/logo.png'
function App({navigation}) {
return <AppHeader
headerType="LogoHeader"
logo={LOGO}
headerColor="red"
iconColor="white"
firstIcon={
<FontAwesome name="plus-square-o" size={24} color="white" />
}
firstonClick={() => navigation.navigate("Help")}
secondIcon={
<FontAwesome name="question-circle-o" size={24} color="white" />
}
secondonClick={()=>navigation.navigate("AddUser")}
/>}
/>
}
Contributions are welcome! If you find any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request on the GitHub repository: react-native-app-header.
This project is licensed under the ISC License. See the LICENSE file for details.
For any inquiries or support, you can reach out to the project maintainers via harshalmm143@gmail.com.
FAQs
React Native App Header is a customizable component for React Native applications that allows you to easily implement a header bar at the top of your app screens. This header can contain titles, icons, or any other elements.
The npm package react-native-app-header receives a total of 4 weekly downloads. As such, react-native-app-header popularity was classified as not popular.
We found that react-native-app-header demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.