Image Component fail when received props fontSize and color
pacozaa opened this issue · comments
pacozaa commented
Image Component fail when received props fontSize and color
I check CNToolbarSetIcon.js
it applied both fontSize and color to the object even if the component is Image
Warning: Failed prop type: Invalid props.style key `fontSize` supplied to `Image`.
Bad object: {
"width": 32.74285714285715,
"height": 32.74285714285715,
"fontSize": 30,
"color": ""
}
Valid keys: [
"display",
"width",
"height",
"start",
"end",
"top",
"left",
"right",
"bottom",
"minWidth",
"maxWidth",
"minHeight",
"maxHeight",
"margin",
"marginVertical",
"marginHorizontal",
"marginTop",
"marginBottom",
"marginLeft",
"marginRight",
"marginStart",
"marginEnd",
"padding",
"paddingVertical",
"paddingHorizontal",
"paddingTop",
"paddingBottom",
"paddingLeft",
"paddingRight",
"paddingStart",
"paddingEnd",
"borderWidth",
"borderTopWidth",
"borderStartWidth",
"borderEndWidth",
"borderRightWidth",
"borderBottomWidth",
"borderLeftWidth",
"position",
"flexDirection",
"flexWrap",
"justifyContent",
"alignItems",
"alignSelf",
"alignContent",
"overflow",
"flex",
"flexGrow",
"flexShrink",
"flexBasis",
"aspectRatio",
"zIndex",
"direction",
"shadowColor",
"shadowOffset",
"shadowOpacity",
"shadowRadius",
"transform",
"transformMatrix",
"decomposedMatrix",
"scaleX",
"scaleY",
"rotation",
"translateX",
"translateY",
"resizeMode",
"backfaceVisibility",
"backgroundColor",
"borderColor",
"borderRadius",
"tintColor",
"opacity",
"overlayColor",
"borderTopLeftRadius",
"borderTopRightRadius",
"borderBottomLeftRadius",
"borderBottomRightRadius"
]
in Image (created by Context.Consumer)
in StyledNativeComponent (created by Styled(Image))
in Styled(Image) (at CreateContentText.js:583)
in RCTView (at CNToolbarIcon.js:41)
in TouchableWithoutFeedback (at CNToolbarIcon.js:36)
in CNToolbarIcon (at CNToolbarSetIcon.js:34)
pacozaa commented
Ok I am doing it quick.