Seeing this error when upgrading to react 16.0.0-alpha.12 and react-native 0.45.0.
Warning: GooglePlacesAutocomplete: isMounted is deprecated. Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.
It's referring to this line in the specific error, but will come up for the other places this is checked as well. https://github.com/FaridSafi/react-native-google-places-autocomplete/blob/master/GooglePlacesAutocomplete.js#L529
you can disable the yellow box by adding this line
// disable yellow box
console.disableYellowBox = true;
inside your index.ios.js and index.android.js
cheers
You should not do that. That will disable all yellow box warnings, things that need fixing. The correct fix here is to fix the isMounted() reference in this code.
I have issued a PR: https://github.com/FaridSafi/react-native-google-places-autocomplete/pull/178
Having the same issue here after updating expo to v18.0.1
Sadly, i think this component is no longer maintained :/
Damn what timing for this component to _not_ be maintained. Has anybody made a fork and fixed the this issue?
Please look at my fork. I have submitted a pull request, but it has not been merged.
Get Outlook for iOShttps://aka.ms/o0ukef
From: Mathew Wong notifications@github.com
Sent: Wednesday, August 2, 2017 8:04:39 PM
To: FaridSafi/react-native-google-places-autocomplete
Cc: Ujwal Setlur; Comment
Subject: Re: [FaridSafi/react-native-google-places-autocomplete] Warning: GooglePlacesAutocomplete: isMounted is deprecated (#162)
Damn what timing for this component to not maintained. Has anybody made a fork and fixed the this issue?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/FaridSafi/react-native-google-places-autocomplete/issues/162#issuecomment-319855291, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFkMXQcJXpOyAD0HS9LiqtKgphMou_KFks5sUTjHgaJpZM4N0bYa.
ok will check it out! :)
+1
Fixed by 1.3.0