Skip to content

isMounted(...) is deprecated warning #3956

@jsina

Description

@jsina

I've get an "isMounted(...) is deprecated in plain javascript react classes" error with this dependencies, I wanna know that is there any problem with react-navigation with with "react": "16.3.1", or not?

  "dependencies": {
    "prop-types": "^15.6.1",
    "react": "16.3.1",
    "react-native": "0.55.2",
    "react-navigation": "^1.5.11"
  },

Activity

codler

codler commented on Apr 11, 2018

@codler

I get the same warning after upgrading to react native 0.55.2

jsina

jsina commented on Apr 11, 2018

@jsina
Author

@codler I think it's for some changing in new version of react. I've find the link below. but the problem is for react-navigation api, because it's used some deprecated method.
https://medium.com/@baphemot/whats-new-in-react-16-3-d2c9b7b6193b

kk412027247

kk412027247 commented on Apr 11, 2018

@kk412027247

I also get the same warning, still can't fix it

Ayyagaries

Ayyagaries commented on Apr 11, 2018

@Ayyagaries

Same here this is what I see
simulator screen shot - iphone 6 - 2018-04-11 at 09 28 22

Matgsan

Matgsan commented on Apr 12, 2018

@Matgsan

Same problem here

kk412027247

kk412027247 commented on Apr 12, 2018

@kk412027247

I add this code to index.js, so that i can ignore this warnning.

import { YellowBox } from 'react-native';
YellowBox.ignoreWarnings(['Warning: isMounted(...) is deprecated', 'Module RCTImageLoader']);
hhw3KevinHou

hhw3KevinHou commented on Apr 12, 2018

@hhw3KevinHou

I got this too, and searched whole react-navigation in node_modules did not find 'isMounted()'. Weird.

Rah1x

Rah1x commented on Apr 12, 2018

@Rah1x

any solution?!!

Rah1x

Rah1x commented on Apr 12, 2018

@Rah1x
Rah1x

Rah1x commented on Apr 12, 2018

@Rah1x

If you look at this entry, it was indicative enough that its going away since 2015!!. and here we are in 2018 still using it:
moreartyjs/moreartyjs#84

hhw3KevinHou

hhw3KevinHou commented on Apr 12, 2018

@hhw3KevinHou

@Rah1x looks like isMounted() is not in react-navigation directory.

Rah1x

Rah1x commented on Apr 12, 2018

@Rah1x

@hhw3KevinHou
true, however this issue only came just right now as I updated react-navigation of a fine app

derekbar90

derekbar90 commented on Apr 12, 2018

@derekbar90

I can confirm this issue as well.

Rah1x

Rah1x commented on Apr 12, 2018

@Rah1x

I just followed @kk412027247 and ignored it.. not that doesnt solve the issue

PanRada

PanRada commented on Apr 12, 2018

@PanRada

have same happend on new app

28 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @zhaiduo@brentvatne@codler@Rah1x@bcbee

        Issue actions

          isMounted(...) is deprecated warning · Issue #3956 · react-navigation/react-navigation