Skip to content

Commit

Permalink
Fix duration for tabs. Bump to 0.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Zotov committed Jan 30, 2020
1 parent 398e9d0 commit e432a5f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@navigationjs/react",
"version": "0.3.2",
"version": "0.3.3",
"description": "Small and well-tested React navigation",
"main": "dist/index.js",
"author": "Ivan Zotov <me@ivanzotov.com> (http://ivanzotov.com/)",
Expand Down
2 changes: 1 addition & 1 deletion src/Modal/Scene.js
Expand Up @@ -3,7 +3,7 @@ import { Value } from '@navigationjs/core';
export default class Scene {
constructor(name) {
this.name = name;
this.active = new Value('active');
this.active = new Value('active', 0, 300);
}

show = duration => this.active.to(1, duration);
Expand Down
2 changes: 1 addition & 1 deletion src/Modal/Wrap.js
Expand Up @@ -57,7 +57,7 @@ export default class Wrap extends Component {
right: 0,
bottom: 0,
transitionProperty: 'transform',
transitionDuration: '300ms',
transitionDuration: `${scene.active.duration}ms`,
overflowY: 'auto',
backgroundColor: 'white',
}}
Expand Down
2 changes: 1 addition & 1 deletion src/Stack/Scene.js
Expand Up @@ -3,7 +3,7 @@ import { Value } from '@navigationjs/core';
export default class Scene {
constructor(name) {
this.name = name;
this.active = new Value('active');
this.active = new Value('active', 0, 300);
this.depth = new Value('depth');
}
show = duration =>
Expand Down
2 changes: 1 addition & 1 deletion src/Stack/Wrap.js
Expand Up @@ -60,7 +60,7 @@ export default class Wrap extends Component {
right: 0,
bottom: 0,
transitionProperty: 'transform',
transitionDuration: '300ms',
transitionDuration: `${scene.active.duration}ms`,
overflowY: 'auto',
backgroundColor: 'white',
}}
Expand Down
2 changes: 1 addition & 1 deletion src/Tab/Wrap.js
Expand Up @@ -57,7 +57,7 @@ export default class Wrap extends Component {
right: 0,
bottom: 0,
transitionProperty: 'transform',
transitionDuration: '300ms',
transitionDuration: `${scene.active.duration}ms`,
overflowY: 'auto',
backgroundColor: 'white',
}}
Expand Down

0 comments on commit e432a5f

Please sign in to comment.