{"action":"created","issue":{"url":"https://api.github.com/repos/oblador/react-native-collapsible/issues/162","repository_url":"https://api.github.com/repos/oblador/react-native-collapsible","labels_url":"https://api.github.com/repos/oblador/react-native-collapsible/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/oblador/react-native-collapsible/issues/162/comments","events_url":"https://api.github.com/repos/oblador/react-native-collapsible/issues/162/events","html_url":"https://github.com/oblador/react-native-collapsible/issues/162","id":312354217,"node_id":"MDU6SXNzdWUzMTIzNTQyMTc=","number":162,"title":"RN 0.54 / React 16.3 deprecation warnings for componentWillReceiveProps, componentWillMount","user":{"login":"peacechen","id":6295083,"node_id":"MDQ6VXNlcjYyOTUwODM=","avatar_url":"https://avatars3.githubusercontent.com/u/6295083?v=4","gravatar_id":"","url":"https://api.github.com/users/peacechen","html_url":"https://github.com/peacechen","followers_url":"https://api.github.com/users/peacechen/followers","following_url":"https://api.github.com/users/peacechen/following{/other_user}","gists_url":"https://api.github.com/users/peacechen/gists{/gist_id}","starred_url":"https://api.github.com/users/peacechen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peacechen/subscriptions","organizations_url":"https://api.github.com/users/peacechen/orgs","repos_url":"https://api.github.com/users/peacechen/repos","events_url":"https://api.github.com/users/peacechen/events{/privacy}","received_events_url":"https://api.github.com/users/peacechen/received_events","type":"User","site_admin":false},"labels":[{"id":221492720,"node_id":"MDU6TGFiZWwyMjE0OTI3MjA=","url":"https://api.github.com/repos/oblador/react-native-collapsible/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2018-04-08T23:54:06Z","updated_at":"2018-07-23T21:49:11Z","closed_at":"2018-07-22T17:18:42Z","author_association":"CONTRIBUTOR","body":"```\r\nWarning: componentWillReceiveProps is deprecated and will be removed in the next major version. Use static getDerivedStateFromProps instead.\r\n\r\nPlease update the following components: HTML\r\nLearn more about this warning here:\r\nhttps://fb.me/react-async-component-lifecycle-hooks\r\n\r\nWarning: componentWillMount is deprecated and will be removed in the next major version. Use componentDidUpdate instead. As a temporary workaround, you can rename to UNSAFE_componentWillUpdate.\r\n\r\nPlease update the following components: HTML\r\n```\r\n\r\nThe fixes are actually simple and maintain backward compatibility.\r\nReplace `componentWillReceiveProps` with `componentDidUpdate` and tweak logic appropriately.\r\n\r\nIn the rare case that `getDerivedStateFromProps` is necessary, a polyfill can be used to maintain backwards compatibility.\r\nSee https://github.com/reactjs/react-lifecycles-compat\r\n"},"comment":{"url":"https://api.github.com/repos/oblador/react-native-collapsible/issues/comments/407212275","html_url":"https://github.com/oblador/react-native-collapsible/issues/162#issuecomment-407212275","issue_url":"https://api.github.com/repos/oblador/react-native-collapsible/issues/162","id":407212275,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzIxMjI3NQ==","user":{"login":"iRoachie","id":5962998,"node_id":"MDQ6VXNlcjU5NjI5OTg=","avatar_url":"https://avatars2.githubusercontent.com/u/5962998?v=4","gravatar_id":"","url":"https://api.github.com/users/iRoachie","html_url":"https://github.com/iRoachie","followers_url":"https://api.github.com/users/iRoachie/followers","following_url":"https://api.github.com/users/iRoachie/following{/other_user}","gists_url":"https://api.github.com/users/iRoachie/gists{/gist_id}","starred_url":"https://api.github.com/users/iRoachie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iRoachie/subscriptions","organizations_url":"https://api.github.com/users/iRoachie/orgs","repos_url":"https://api.github.com/users/iRoachie/repos","events_url":"https://api.github.com/users/iRoachie/events{/privacy}","received_events_url":"https://api.github.com/users/iRoachie/received_events","type":"User","site_admin":false},"created_at":"2018-07-23T21:49:11Z","updated_at":"2018-07-23T21:49:11Z","author_association":"COLLABORATOR","body":"There’s no other reference to deprecated lifecycle methods in the source. But in my experience it has shown sometimes without any other components "}}
{"actor":{"display_login":"iRoachie"}}