0.0.1 • Published 5 years ago

react-native-space-navigation v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

React Native Space Navigation

The design belongs to a designer from Dribbble. Navigation Menu Interactions 🚀

Images

Dependencies

  1. react-native-svg
  2. react-native-vector-icons

Installation

npm install --save react-native-space-navigation

Import

import SpaceNavigation from 'react-native-space-navigation';

Parameters

NameValueDescription
changeNavigationcallback(page)The function to call when the page changes.
navigationArray Set of menus to create.
firstPageNumberStart page order.

Usage

navigation(page){
  console.warn(page);
}

<SpaceNavigation
  changeNavigation={this.navigation}
  navigation={[
    { packet: 'Foundation', icon: 'home' },
    { packet: 'Feather', icon: 'bookmark' },
    { packet: 'Feather', icon: 'plus-circle' },
    { packet: 'AntDesign', icon: 'user' },
    { packet: 'Entypo', icon: 'cog' }
  ]}
  firstPage={0}
/>

License

MIT