react-native-material-design icon indicating copy to clipboard operation
react-native-material-design copied to clipboard

Searchbar, toolbar menu, navigation drawer account header; react-native-material-ui

Open dantman opened this issue 9 years ago • 1 comments

react-native-material-design was forked awhile ago react-native-material-ui: https://github.com/xotahal/react-native-material-ui

The author added search functionality to the toolbar, menus, and the account style navigation drawer.

It would probably be a good idea to try and merge the improvements back into this library; instead of making this pattern of forking go beyond just forking the old mrn library.

dantman avatar Aug 14 '16 05:08 dantman

I think it's not possible now. Because I changed a way how to use that library.

We needed to have option to completely and very easily change style/theme of the application. For example, it's very hard to set color of first line of list item in react-native-material-design (maybe it's even impossible - don't know if there is any prop). Or change height of all buttons in your app like in this issue - https://github.com/react-native-material-design/react-native-material-design/issues/40

Of course, you can set couple of things via props of component. But you have to change it on every place in your code where you use that component.

In react-native-material-ui

  • you can define object that will be merged with default styles and use everywhere in your app (inspired by material-ui) - very easy
  • there is still possibility to change style of only one component via props
  • or you can use your style even in your own components (via context)
  • every component have a style prop, so you can set everything without waiting for any pull requests that add required prop
  • I unified Icon and IconToggle, added Animations and made lots of another changes

xotahal avatar Sep 14 '16 21:09 xotahal