Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
The modal offset is by default 0. This update will make it able to set the initial offset prop
  • Loading branch information
bbeckk authored May 22, 2018
1 parent 18d3866 commit cc48b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Modal extends Component {
state = {
opacity: new Animated.Value(0),
scale: new Animated.Value(0.8),
offset: new Animated.Value(0)
offset: new Animated.Value(this.props.offset)
};

componentWillMount() {
Expand Down

0 comments on commit cc48b00

Please sign in to comment.