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/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 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 {