Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-custom-menus

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-custom-menus

Create simple navigation menus with your own personalized icons and style!

  • 0.1.11
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

What it does:

Create simple navigation menus with your own personalized icons and style!

Install

npm install react-native-custom-menus

Custom Menu

import React from 'react';
import { StyleSheet, Text, View, Image, Dimensions } from 'react-native';
import FirstPage from './FirstPage';
import SecondPage from './SecondPage';
import { FancyNavigation, CustomNavigation, CustomPage } from 'react-native-custom-menus';

export default class MyDrawer extends React.Component {
  render() {
    return (
      <CustomNavigation
        icon={{uri: 'https://cdn4.iconfinder.com/data/icons/tupix-1/30/list-512.png'}}
        style={styles.menu}
      >
        <CustomPage path={FirstPage} icon={require(`./assets/pic1.png`)}/>
        <CustomPage path={SecondPage} icon={require(`./assets/pic2.png`)}/>
      </CustomNavigation>
    )
  }
}
Normal

Fancy Menu

import React from 'react';
import { StyleSheet, Text, View, Image, Dimensions } from 'react-native';
import FirstPage from './FirstPage';
import SecondPage from './SecondPage';
import { FancyNavigation, CustomNavigation, CustomPage } from 'react-native-custom-menus';

export default class MyDrawer extends React.Component {
  render() {
    return (
      <FancyNavigation
        icon={{uri: 'https://cdn4.iconfinder.com/data/icons/tupix-1/30/list-512.png'}}
        style={styles.menu}
        radius={100}
      >
        <CustomPage path={FirstPage} icon={require(`./assets/pic1.png`)}/>
        <CustomPage path={SecondPage} icon={require(`./assets/pic2.png`)}/>
      </FancyNavigation>
    )
  }
}
Fancy

Rendering the Drawer

import MyDrawer from './MyDrawer';

export default class App extends React.Component {
  render() {
    return (
      <View style={styles.container}>
        <MyDrawer/>
      </View>
    )
  }
}

FAQs

Package last updated on 19 Mar 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc