react-native-material-dropdown icon indicating copy to clipboard operation
react-native-material-dropdown copied to clipboard

ComponentWillUpdate deprecation issue

Open subhechhu opened this issue 6 years ago • 3 comments

When I add the library I get component will update deprecation issue. Without it there is no issue. Can it be resolved in my end?

Issue

subhechhu avatar Jun 05 '19 05:06 subhechhu

@n4kz can I try to fix it?

progsmile avatar Oct 30 '19 12:10 progsmile

Screenshot 2019-11-12 at 10 15 13 For some reason it installs older version (0.12.0) of react-native-material-textfield that uses old lifecycle methods even though i have never version (0.16.1) used as a project dependency that does not use those old lifecycle methods...

Is there a way to fix this? Looks like a npm issue?

big-toni avatar Nov 12 '19 09:11 big-toni

also this lib uses: componentWillReceiveProps({ value }) { if (value !== this.props.value) { this.setState({ value }); } },

that should be changed to componentDidUpdate

big-toni avatar Nov 12 '19 10:11 big-toni