Skip to content

v2.0.0

Latest
Compare
Choose a tag to compare
@mxck mxck released this 23 Aug 19:28
· 3 commits to master since this release

Hello, everyone!

I was very surprised that this project, which I wrote 4 years ago, is used by a large number of people. Thank you!
For now, there will be minimal changes to the code and how the menu works. The goal was only to update the code base.

Breaking changes

  • Typescript. Types support will be out of the box.
    Thanks to @KoreanThinker for develop of custom typings.

  • Renamed button to anchor and onHidden to onRequestClose.

  • Menu is now controlled by visible prop.
    It is no longer necessary to use refs.

  • Menu export by name, not by default export.
    Now you have to use this import { Menu } from 'react-native-material-menu'

  • MenuItem now uses Pressable.