react-native-sliding-up-panel icon indicating copy to clipboard operation
react-native-sliding-up-panel copied to clipboard

ComponentWillReceiveProps is not implemented

Open nsathiya opened this issue 7 years ago • 1 comments

So when the props is updated (in my case, the defaultView), the panel is not setting the changes to state and re-rendering. Should I open up a PR?

nsathiya avatar Feb 02 '18 23:02 nsathiya

Actually, instead of implementing componentWillReceiveProps you can just remove defaultView from state, and just use this.props.defaultHandleView in componentDidMount and render

nsathiya avatar Feb 03 '18 00:02 nsathiya