Skip to content

Commit

Permalink
Small cleanup. Needs more cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
Karsens committed Jan 11, 2019
1 parent d070abb commit ae0f61e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions fade.in.title.component.tsx
Expand Up @@ -43,18 +43,18 @@ class FadeInTitle extends React.Component<P, S> {
set();
}

//Step 1
//Animation Step 1
let initialValue = this.state.show ? MAXHEIGHT : 0,
finalValue = this.state.show ? 0 : to === false ? 0 : MAXHEIGHT;

this.state.animation.setValue(initialValue); //Step 3
this.state.animation.setValue(initialValue); //Step 2
Animated.spring(
//Step 4
//Step 3
this.state.animation,
{
toValue: finalValue
}
).start(() => {}); //Step 5
).start(() => {}); //Step 4
}

render() {
Expand Down
8 changes: 4 additions & 4 deletions types.tsx
Expand Up @@ -21,8 +21,8 @@ export type InputProps = Field & {
value: any;
navigation: object;
key: number;
state: object;
device: object;
me: object;
setState: (state: object) => void;
state?: object;
device?: object;
me?: object;
setState?: (state: object) => void;
};

0 comments on commit ae0f61e

Please sign in to comment.