. Advertisement .
..3..
. Advertisement .
..4..
Currently, when we try to launch our project, the following WARN [react-native-gesture-handler] Seems like you’re using an old API with gesture components error appears. If you’re looking for solutions, you’ll find them here in our following post.
What Causes WARN [react-native-gesture-handler] Seems like you’re using an old API with gesture components Error?
Recently, we recreated all node modules in our react-native project using yarn. After it finished, we launched the application, and this warning appeared.
WARN [react-native-gesture-handler] Seems like you’re using an old API with gesture components
How Do We Solve It?
To solve it, you may simply ignore or deactivate the warning messages. Add the following line to your app: LogBox.ignoreLogs ([ “[react-native-gesture-handler] Seems like you\’re using an old API with gesture components.
Now, you won’t receive that warning again. We will show you more specifics in the next part.
The Solutions
Solution 1
The new update of react-native-gesture-handler sends an alert if you are using an outdated API variant, but it also sends a warning when one of your packages/libraries uses it. You can deactivate the warning by ignoring logs in the application using this command.
import { LogBox } from 'react-native'; LogBox.ignoreLogs([ "[react-native-gesture-handler] Seems like you\'re using an old API with gesture components ]);
Solution 2
Alternatively, you may try installing npm with the following code and adding the expected version.
npm i react-native-gesture-handler
Then exit the server and reopen it by clearing the cache
expo r -c
Conclusion
Please feel free to apply our solutions for solving the WARN [react-native-gesture-handler] Seems like you’re using an old API with gesture components error, and inform us if the solutions best suit your case.
It would be ideal if you mentioned any issues in the discussion section, and we will respond to them all.
Leave a comment