Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/DragSortableView.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ export default class DragSortableView extends Component{
transform: [transformObj]
}]}>
<TouchableOpacity
activeOpacity = {1}
activeOpacity = {this.props.activeOpacity}
delayLongPress={this.props.delayLongPress}
onPressOut={()=> this.onPressOut()}
onLongPress={()=>this.startTouch(index)}
Expand Down Expand Up @@ -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 = {
Expand All @@ -512,6 +513,7 @@ DragSortableView.defaultProps = {
minOpacity: 0.8,
scaleDuration: 100,
slideDuration: 300,
activeOpacity: 1,
}

const styles = StyleSheet.create({
Expand Down
1 change: 1 addition & 0 deletions lib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ interface IProps{
minOpacity?: number;
scaleDuration?: number;
slideDuration?: number;
activeOpacity?: number;
}

interface AutoIProps extends IProps {
Expand Down