react-native-menu-view
TypeScript icon, indicating that this package has built-in type declarations

1.2.4 • Public • Published

React Native MenuView

A <MenuView> shim for react-native-web.

If Platform.OS is not web, use native @react-native-menu/menu instead.

https://user-images.githubusercontent.com/3146159/157003929-06cde779-c890-4d2c-ad36-9f0fa98509ce.mov

Usage

import { MenuView } from 'react-native-menu-view'

All props are same with @react-native-menu/menu.

image prop

You can use @font-face to load an image font in css. Then you can use font ligatures as image prop's value

@font-face {
  /* important, font-family name must be `React Native Menu` */
  font-family: 'React Native Menu';
  font-style: normal;
  font-weight: 400;
  /* This file can be any font */
  src: url(/static/fonts/MaterialIcons.woff2) format('woff2');
}
  <MenuView actions={[{ image: 'plus' }]} />

Readme

Keywords

none

Package Sidebar

Install

npm i react-native-menu-view

Weekly Downloads

4

Version

1.2.4

License

none

Unpacked Size

65.4 kB

Total Files

27

Last publish

Collaborators

  • heineiuo