react-native-material-ui

Highly customizable material design components for React Native

MIT License

Downloads
7.6K
Stars
3.8K
Committers
71

Bot releases are hidden (Show)

react-native-material-ui - v2.0.0-alpha.1@develop Latest Release

Published by xotahal over 5 years ago

2.0.0-alpha.1 (2019-04-20)

Bug Fixes

BREAKING CHANGES

  • The lib needs to be updated to use
  • the latest React and React Native
  • a new Context API
  • flow type
  • a new theming system (currently it doesn't respect the Pure Component idea)

Some props will be changed. A new components will be added.

react-native-material-ui - 1.30.1

Published by xotahal over 6 years ago

Features

  • ⭐️ You can now override an icon set in theme - MaterialIcons, MaterialCommunityIcons, FontAwesome, etc. (Everything that is provided by react-native-vector-icons).

To use community set as default:

<ThemeContext.Provider value={getTheme({ iconSet: 'MaterialCommunityIcons' })>
    ...
</ThemeContext.Provider>

or just for only one component

<ListItem
     iconSet="MaterialCommunityIcons"
     icon="shape"
/>
react-native-material-ui - 1.30.0 - June 2018

Published by xotahal over 6 years ago

Breaking changes

Before

import React, { Component } from 'react';
import { Navigator, NativeModules } from 'react-native';

import { COLOR, ThemeProvider } from '../react-native-material-ui';

// you can set your style right here, it'll be propagated to application
const uiTheme = {
    palette: {
        primaryColor: COLOR.green500,
    },
    toolbar: {
        container: {
            height: 50,
        },
    },
};

class Main extends Component {
    render() {
        return (
            <ThemeProvider uiTheme={uiTheme}>
                <App />
            </ThemeProvider>
        );
    }
}

Now

import React, { Component } from 'react';
import { Navigator, NativeModules } from 'react-native';

import { COLOR, ThemeContext, getTheme } from 'external/react-native-material-ui';

// you can set your style right here, it'll be propagated to application
const uiTheme = {
    palette: {
        primaryColor: COLOR.green500,
    },
    toolbar: {
        container: {
            height: 50,
        },
    },
};

class Main extends Component {
    render() {
        return (
            <ThemeContext.Provider value={getTheme(uiTheme)}>
                <App />
            </ThemeContext.Provider>
        );
    }
}

If you don't want to change the default theme, you don't have to do anything. You don't have to use ThemeContext.Provider

Now - without changing default theme

import React, { Component } from 'react';
import { Navigator, NativeModules } from 'react-native';

class Main extends Component {
    render() {
        return (
             <App />
        );
    }
}

Using the theme in your components

Before

import ...

const contextTypes = {
    uiTheme: PropTypes.object.isRequired,
};

class MyButton extends Component {
    render() {
	    // it's really easy to get primary color everywhere in your app
        const { primaryColor } = this.context.uiTheme.palette;

        return ...
    }
}

export ...

Now

import { withTheme } from 'react-native-material-ui'

class MyButton extends Component {
    render() {
	    // it's really easy to get primary color everywhere in your app
        const { primaryColor } = this.props.theme.palette;

        return ...
    }
}

export default withTheme(MyButton)

Or no-HOC solution

import { ThemeContext } from 'react-native-material-ui'

class MyButton extends Component {
    render() {
        <ThemeContext.Consumer>
             {theme => .... }
        </ThemeContext.Consumer>
    }
}

export default MyButton
react-native-material-ui - v1.21.0

Published by janziemba over 6 years ago

react-native-material-ui -

Published by janziemba over 6 years ago

react-native-material-ui - v1.8.0

Published by xotahal over 7 years ago

Enhancement

  • [Badge] Add stroke around the badge

Fix

react-native-material-ui - v1.7.0

Published by xotahal over 7 years ago

Breaking changes

  • only if you use toolbar's trancluent prop - it was removed, use style prop instead

Features and Enhancements

  • [Toolbar] Add animation between search/default mode 🎉 Check an article about this feature
    untitled2
  • [IconToggle] enhancement ripple effect of icon buttons (so smooth now, uses native driver -> doesn't block JS thread) 🎉 Check an article about this feature
    untitled3
  • [Button] Set button text to go uppercase or not (#77) - @kenma9123
  • [Avatar] Add ability to specify icon's color and size (#69) - @frankros91
  • [ActionButton] Add support for custom icons in actions (#66) - @NewOldMax
  • [ListItem] Add tertiaryText Option (#67) - @mbenjamin618
  • [Toolbar] Add show and hide animations (#80) - @HofmannZ

Fix

  • [ActionButton] Add missing styles for labels (#76) - @NewOldMax
react-native-material-ui - v1.6.0

Published by xotahal almost 8 years ago

Features and Enhancements

  • use "eslint-config-airbnb": "^13.0.0"
  • add Jest and use codecov.io
  • [BottomNavigation] Ability to handle custom Icons instead of icon names. (#62) decb49a
  • [BottomNavigation] Able to change the styles of active navigation via theme (#72) e28942c
  • Add autoCaptialize & autoCorrect to Toolbar.searchable (#71)
  • Add show and hide animation BottomNavigation 🎉 check it here
  • Add ability to hide/show action button 🎉 check it here
react-native-material-ui - v1.5.0

Published by xotahal almost 8 years ago

Feature

Fix

  • Fix leftElement to work with any element and not just icon names (#46) 6cef3d6
  • Remove code specific to Android in Toolbar Search (#54) 042c60e
react-native-material-ui - v1.4.0

Published by xotahal almost 8 years ago

Feature

Fix

  • fix breaking layout changes in RN0.36

Enhancement

  • use React.PureComponent instead of React.Component for all components
react-native-material-ui - v1.3.4

Published by xotahal almost 8 years ago

Fixed

  • fix ability to change size of toolbar icons (issue - #34) 5fbdf3b

Enhancement

  • since iOS doesn't support TouchableNativeFeedback you can use RippleFeedback in your App
export { default as RippleFeedback } from './RippleFeedback';
react-native-material-ui - v1.3.2

Published by xotahal about 8 years ago

Fixed

  • fix three lines item in list f37cc13
  • it'll close toolbar search on BackAndroid press now c6335be
  • remove React and React Native from dependecies issue
react-native-material-ui - v1.3.0

Published by xotahal about 8 years ago

New features

  • you are able to specify actions with labels for action buttons (see this page)

Breaking changes ❗️

NOTE: only if you override style of action button.

Structure of action button was changed. Just check it in render method.

react-native-material-ui - v1.2.5

Published by xotahal about 8 years ago

Fix dependencies

react-native-material-ui - v1.2.2

Published by xotahal about 8 years ago

New features

  • iOS support 🎉
react-native-material-ui - v1.2.0

Published by xotahal about 8 years ago

New features

  • Add ability to display extra actions after the FAB is pressed - see ActionButton component 🎉
  • Add animations for floating action button
react-native-material-ui - v1.1.0

Published by xotahal about 8 years ago

New features

Fix

  • Set backgroundColor of drawer to white by default f74240d
  • Fix background of drawer if image is specified 368ddfa
react-native-material-ui - v1.0.0-rc

Published by xotahal about 8 years ago

Breaking changes!

This version completely changes how to use this library. You should know about new theme provider. And also there is documentation for every each component (or it will be very soon :)).

react-native-material-ui - v0.6.3

Published by xotahal about 8 years ago

New features

  • ability to add divider after list item

Fixes

  • IconToggle background
react-native-material-ui - 0.4.2

Published by xotahal over 8 years ago

New features

  • Add ability to display and select account on side menu's header spec
  • Add list item: controls spec
  • Add ability to set fullWidth for Card component
Package Rankings
Top 1.51% on Npmjs.org
Top 6.73% on Proxy.golang.org
Badges
Extracted from project README
npm codecov npm Dependencies GitHub license
Related Projects