Open noecs opened 5 years ago
i have the same issue with you, i have an suggest that how about ignore the warn and test on another phone with another version OS ?
Here same issue.
getting these 2 warnings and swiper is not swiping left and right
i have the same issue with you, i have an suggest that how about ignore the warn and test on another phone with another version OS ?
Actually, that issue not related to OS. The problem is that lib uses componentWillReceiveProps
and componentWillUpdate
which will be removed from 17 version of React. So would be really great if lib's maintainers made a migration to a new lifecycle hooks.
I have the same issue with react 16.8.6 and react-native 0.60.5.
Warning | Warning extended |
---|---|
![]() |
![]() |
So would be really great if lib's maintainers made a migration to a new lifecycle hooks.
Yes, seems the author is gonna fix it in next minor version.. https://github.com/leecade/react-native-swiper/issues/1001
Any plans for a new release?
I'm aware that this is not a solution, but if you just want to get rid of the Yellow Boxes, add this to your app's index.js
:
import {.., YellowBox} from "react-native"
// ..
YellowBox.ignoreWarnings(["Warning: componentWillUpdate"])
any update on this? when to transition to hooks?
Which OS ?
macOS Mojave 10.14.6
Version
Which versions are you using:
Actual behaviour
I wrote an example:
It reported me two warnings
I am sure that my code does not use the two lifecycle functions that react is about to remove, but I don't know how it should be fixed.