1.0.2 • Published 9 months ago

@yousafzai66/customheader v1.0.2

Weekly downloads
-
License
Apache-2.0 licens...
Repository
github
Last release
9 months ago

Custom Header Package

Custom header for react-native applications to reduce the hassle of creating a header for each screen.

Installation

You can install this package using npm:

npm install @yousafzai66/customheader

Example:

import React from 'react';
import { View } from 'react-native';
import CustomHeader from '@yousafzai66/customheader';

const App = () => {
    return (
        <View>
            <CustomHeader title="Custom Header" onPress={() => console.log('Back pressed')} />
            {/* Other components */}
        </View>
    );
};

export default App;

Props:

  • title : title that will be displayed
  • onPress: prop to call function on the icon press
  • customHeaderStyling: prop to pass custom styling to header if required
  • addRightIcon: prop to add icon on the right if required.
  • RightIconStyling: prop to add styling to the right icon.
  • onRightIconPress: prop to call a function on right icon press.

Hope this helps! Have a great day!

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago