()
| 121 | } |
| 122 | |
| 123 | toggleDisplay() { |
| 124 | this.isLoggingIn = !this.isLoggingIn; |
| 125 | let mainContainer = <View>this.mainContainer.nativeElement; |
| 126 | mainContainer.animate({ |
| 127 | backgroundColor: this.isLoggingIn ? new Color("white") : new Color("#301217"), |
| 128 | duration: 200 |
| 129 | }); |
| 130 | } |
| 131 | |
| 132 | startBackgroundAnimation(background) { |
| 133 | background.animate({ |