question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warning: Failed prop type: Invalid prop `style` supplied to `_class`.

See original GitHub issue

Version

  • react-native-swiper v1.5.10

Code

<Swiper loop={false}>XXXXX</Swiper> I didnot write any styles, but it warning.

image

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:11

github_iconTop GitHub Comments

5reactions
kaladivocommented, May 25, 2018

I get the same warning with styled-components.

3reactions
dannyblvcommented, Aug 25, 2018

@arribbar This warning showing up when using styled-components (not with style prop). I’m also facing that warning,

Warning: Failed prop type: Invalid prop `style` supplied to `_class`.

const SwiperView = styled(Swiper)``;

versions RN: 0.55.4, React: 16.3.1, react-native-swiper: 1.5.13

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed prop type: Invalid prop `style` of type `array` supplied to ...
javascript - How to Fix Warning: Failed prop type: Invalid prop `style` of type `array` supplied to `Row`, expected `object` - Stack Overflow. ......
Read more >
invalid prop `rows` of type `object` supplied to `forwardref ...
Warning : Failed prop type: Invalid prop rows of type object supplied to ForwardRef(DataGrid), expected array.` Update after i remove the Object.fromEntries.
Read more >
Typechecking With PropTypes - React
import PropTypes from 'prop-types'; class Greeting extends React. ... When an invalid value is provided for a prop, a warning will be shown...
Read more >
Why aren't images showing in React Native? Failed prop type ...
Failed prop type : Invalid prop `source` supplied to `Image`-React Native. Search. score:0. const Galery = (props) => ( <div> <p>{props.title}</p> ...
Read more >
How To Use PropTypes In React - Web Dev Simplified Blog
Warning : Failed prop type: Invalid prop age of type string supplied to Component , expected number . This is great since we...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found