react-native-sliding-up-panel
react-native-sliding-up-panel copied to clipboard
ComponentWillReceiveProps is not implemented
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?
Actually, instead of implementing componentWillReceiveProps
you can just remove defaultView from state
, and just use this.props.defaultHandleView
in componentDidMount
and render