From 5ee2b4333ff97d8022d967cbd3c2fe73cf6a5653 Mon Sep 17 00:00:00 2001 From: yaogengzhu <455947455@qq.com> Date: Thu, 21 Jul 2022 15:31:40 +0800 Subject: [PATCH 1/2] dos: update docs --- lib/DragSortableView.js | 6 ++++-- lib/index.d.ts | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/DragSortableView.js b/lib/DragSortableView.js index 6170f82..1434421 100644 --- a/lib/DragSortableView.js +++ b/lib/DragSortableView.js @@ -446,7 +446,7 @@ export default class DragSortableView extends Component{ transform: [transformObj] }]}> this.onPressOut()} onLongPress={()=>this.startTouch(index)} @@ -495,7 +495,8 @@ DragSortableView.propTypes = { maxScale: PropTypes.number, minOpacity: PropTypes.number, scaleDuration: PropTypes.number, - slideDuration: PropTypes.number + slideDuration: PropTypes.number, + activeOpacity: PropTypes.number, } DragSortableView.defaultProps = { @@ -512,6 +513,7 @@ DragSortableView.defaultProps = { minOpacity: 0.8, scaleDuration: 100, slideDuration: 300, + activeOpacity: 1, } const styles = StyleSheet.create({ diff --git a/lib/index.d.ts b/lib/index.d.ts index 8eb4cc2..a8e58c6 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -30,6 +30,7 @@ interface IProps{ minOpacity?: number; scaleDuration?: number; slideDuration?: number; + activeOpacity?: number; } interface AutoIProps extends IProps { From d4762392bd7b6fd8d15e177728d993b3519619fb Mon Sep 17 00:00:00 2001 From: yaogengzhu <455947455@qq.com> Date: Thu, 21 Jul 2022 15:33:12 +0800 Subject: [PATCH 2/2] DragSortableView: add prop --- lib/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/README.md b/lib/README.md index 91010a3..71b3b2c 100644 --- a/lib/README.md +++ b/lib/README.md @@ -75,6 +75,7 @@ isRequired if there is a * in the name field |**onDragging**|func |**maxScale**|number |**minOpacity**|number +|**activeOpacity**|number #### The following attributes belong only to AutoDragSortableView