react-native-movable-view
react-native-movable-view copied to clipboard
componentWillMount was deprecated in 2018
Simple change needed to MovableView.js: componentWillUnmount was deprecated in 2018
componentWillMount() { if (typeof this.props.onMove === 'function') this.state.pan.addListener((values) => this.props.onMove(values)); }
Replace with:
componentDidMount() { if (typeof this.props.onMove === 'function') this.state.pan.addListener((values) => this.props.onMove(values)); }