react-native-counters icon indicating copy to clipboard operation
react-native-counters copied to clipboard

when the state change it is not changing the child component

Open dan89farhan opened this issue 5 years ago • 0 comments

please add the following method into your class to update this component when parent states get changed.


static getDerivedStateFromProps(nextProps) {
    return { count: nextProps.start }
}

Thanks

dan89farhan avatar Jun 23 '20 12:06 dan89farhan