Skip to content

Undefined color from MaterialCommunityIconΒ #4741

@Izocel

Description

@Izocel

Image

Patch file:

diff --git a/node_modules/react-native-paper/lib/module/components/MaterialCommunityIcon.js b/node_modules/react-native-paper/lib/module/components/MaterialCommunityIcon.js
index 472fee1..523fac9 100644
--- a/node_modules/react-native-paper/lib/module/components/MaterialCommunityIcon.js
+++ b/node_modules/react-native-paper/lib/module/components/MaterialCommunityIcon.js
@@ -1,7 +1,6 @@
 function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
 import * as React from 'react';
-import { StyleSheet, Text, Platform } from 'react-native';
-import { black } from '../styles/themes/v2/colors';
+import { Platform, StyleSheet, Text } from 'react-native';
 export const accessibilityProps = Platform.OS === 'web' ? {
   role: 'img',
   focusable: false
@@ -55,7 +54,7 @@ const MaterialCommunityIcons = IconModule || FallbackIcon;
  */
 const DefaultIcon = ({
   name,
-  color = black,
+  color = "black",
   size,
   direction,
   allowFontScaling,

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions