How to use the react-native-vector-icons/MaterialIcons.ToolbarAndroid function in react-native-vector-icons

To help you get started, we’ve selected a few react-native-vector-icons examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github apiko-dev / GitterMobile / app / components / Toolbar / index.js View on Github external
)
  }
}

Toolbar.propTypes = {
  title: PropTypes.string,
  navIconName: PropTypes.string,
  onNavIconPress: PropTypes.func,
  additionalIcon: PropTypes.element,
  additionalIconTitle: PropTypes.string,
  onAdditionalIconPress: PropTypes.func,
  children: React.PropTypes.any,
  style: PropTypes.any
}

export default Platform.OS === 'ios' ? Toolbar : Icon.ToolbarAndroid
github skvoll / OWItemsTracker / src / components / Layout.js View on Github external
TouchableWithoutFeedback,
    Text,
} from 'react-native';
import Icon from 'react-native-vector-icons/MaterialIcons';

import CONFIG from './../config';

export class Layout extends Component {
    static propTypes = {
        children: React.PropTypes.oneOfType([
            React.PropTypes.element,
            React.PropTypes.arrayOf(React.PropTypes.element),
        ]).isRequired,
        toolbarTitle: React.PropTypes.string,
        onToolbarIconPress: React.PropTypes.func,
        toolbarActions: Icon.ToolbarAndroid.propTypes.actions,
        onToolbarActionSelected: React.PropTypes.func,
        background: React.PropTypes.oneOfType([
            Image.propTypes.source,
            React.PropTypes.string,
        ]),
        disablePadding: React.PropTypes.bool,
        styles: Image.propTypes.style,
    };

    static defaultProps = {
        toolbarTitle: null,
        background: require('./../assets/background.jpg'),
        disablePadding: false,
    };

    constructor(props, context, updater) {