The design belongs to a designer from Dribbble. Navigation Menu Interactions 🚀
npm install --save react-native-space-navigation
import SpaceNavigation from 'react-native-space-navigation';
Name | Value | Description |
---|---|---|
changeNavigation | callback(page) |
The function to call when the page changes. |
navigation | Array |
Set of menus to create. |
firstPage | Number |
Start page order. |
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}
/>