Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed prop type: Invalid props.text2Style key fontSize supplied to BaseToast. #174

Closed
stharvey opened this issue Apr 10, 2021 · 3 comments
Labels
bug Something isn't working v2 Bug fixed / feature added in v2

Comments

@stharvey
Copy link

Hello,

I have seen a previous issue reported where this was fixed for text1Style however I am still seeing this issue for text2Style.

I am using version 1.4.9

The full warning message I am seeing is:

ERROR    Warning: Failed prop type: Invalid props.text2Style key `fontSize` supplied to `BaseToast`.
Bad object: {
  "fontSize": 16,
  "color": "#000"
}
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",
  "backfaceVisibility",
  "backgroundColor",
  "borderColor",
  "borderTopColor",
  "borderRightColor",
  "borderBottomColor",
  "borderLeftColor",
  "borderStartColor",
  "borderEndColor",
  "borderRadius",
  "borderTopLeftRadius",
  "borderTopRightRadius",
  "borderTopStartRadius",
  "borderTopEndRadius",
  "borderBottomLeftRadius",
  "borderBottomRightRadius",
  "borderBottomStartRadius",
  "borderBottomEndRadius",
  "borderStyle",
  "opacity",
  "elevation"
]

Thanks a lot

@michalpolko
Copy link

There is a similiar problem with leadingIconStyle and trailingIconStyle, and probably more props, example:

Warning: Failed prop type: Invalid props.trailingIconStyle key `tintColor` supplied to `BaseToast`.
Bad object: {
  "tintColor": "#FFFFFF"
}

They have type ViewStyle which does not contain tintColor: ColorValue.

@Zgarc
Copy link

Zgarc commented Jun 17, 2021

Still getting similar errors
image

@calintamas calintamas added the bug Something isn't working label Jun 20, 2021
@calintamas calintamas added the v2 Bug fixed / feature added in v2 label Oct 21, 2021
@calintamas
Copy link
Owner

Fixed in v2.0.0. Read the complete changelog.

If you find any issues with the v2 implementation, feel free to reopen this issue. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v2 Bug fixed / feature added in v2
Projects
None yet
Development

No branches or pull requests

4 participants