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

Warning using toastConfig #115

Closed
sunaryohadi opened this issue Dec 21, 2020 · 1 comment
Closed

Warning using toastConfig #115

sunaryohadi opened this issue Dec 21, 2020 · 1 comment

Comments

@sunaryohadi
Copy link

Get warning using toastConfig ....

    22:13:12.872	MyApp		Warning: Failed prop type: Invalid props.text1Style key `fontSize` supplied to `BaseToast`.
    Bad object: {
      "fontSize": 15,
      "fontWeight": "300"
    }
    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",
      "shadowC<…>

I think it's need to change ViewPropTypes.style to Text.propTypes.style

  BaseToast.propTypes = {
    ...
    text1Style: ViewPropTypes.style,
    text2Style: ViewPropTypes.style,
    ...
  }
@sunaryohadi sunaryohadi changed the title text1Style should it be using Text.propTypes.style Warning using toastConfig Dec 21, 2020
@calintamas
Copy link
Owner

fixed in #127

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants