diff options
Diffstat (limited to 'app/components')
| -rw-r--r-- | app/components/Login.js | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/app/components/Login.js b/app/components/Login.js index 08b997703a..d5274a988b 100644 --- a/app/components/Login.js +++ b/app/components/Login.js @@ -31,7 +31,6 @@ type State = { animatedLoginButtonValue: Animated.Value, animation: ?Animated.CompositeAnimation, footerAnimationStyle: ?Animated.Style, - dropdownAnimationStyle: ?Animated.Style, loginButtonAnimationStyle: ?Animated.Style, }; @@ -287,14 +286,6 @@ export default class Login extends Component<LoginPropTypes, State> { }); } - _onDropdownLayout = (layout) => { - this.setState({dropdownHeight: layout.height}); - } - - // container element used for measuring the height of the accounts dropdown - _accountDropdownElement: ?React.Node; - _onAccountDropdownContainerRef = ref => this._accountDropdownElement = ref; - _onSelectAccountFromHistory = (accountToken) => { this.props.onAccountTokenChange(accountToken); this.props.onLogin(accountToken); @@ -312,8 +303,6 @@ export default class Login extends Component<LoginPropTypes, State> { } }; - - return <View style= {styles.login}> <Text style={ styles.subtitle }>{ this._formSubtitle() }</Text> <View style={ this._accountInputGroupStyles() }> @@ -336,12 +325,10 @@ export default class Login extends Component<LoginPropTypes, State> { </Animated.View> </View> <Accordion height={ this._shouldShowAccountHistory(this.props) ? 'auto' : 0 }> - <View onLayout={this._onDropdownLayout} ref={ this._onAccountDropdownContainerRef }> - { <AccountDropdown - items={ accountHistory.slice().reverse() } - onSelect={ this._onSelectAccountFromHistory } - onRemove={ this.props.onRemoveAccountTokenFromHistory } /> } - </View> + { <AccountDropdown + items={ accountHistory.slice().reverse() } + onSelect={ this._onSelectAccountFromHistory } + onRemove={ this.props.onRemoveAccountTokenFromHistory } /> } </Accordion> </View> </View>; |
