Application Android et IOS pour l'amicale des élèves
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CustomMaterialIcon.js 1.0KB

123456789101112131415161718192021222324252627282930
  1. import React from 'react';
  2. import {Icon} from "native-base";
  3. import ThemeManager from '../utils/ThemeManager';
  4. export default class CustomMaterialIcon extends React.Component {
  5. constructor(props) {
  6. super(props);
  7. }
  8. render() {
  9. return (
  10. <Icon
  11. active
  12. name={this.props.icon}
  13. type={'MaterialCommunityIcons'}
  14. style={{
  15. color:
  16. this.props.color !== undefined ?
  17. this.props.color :
  18. this.props.active ?
  19. ThemeManager.getInstance().getCurrentThemeVariables().brandPrimary :
  20. ThemeManager.getInstance().getCurrentThemeVariables().customMaterialIconColor,
  21. fontSize: this.props.fontSize !== undefined ? this.props.fontSize : 26,
  22. width: this.props.width !== undefined ? this.props.width : 30
  23. }}
  24. />
  25. );
  26. }
  27. }