I have 2 Text Inputs each with flex: 1. When I focus one of them, I am making it bigger-> flex: 1 -> flex: 2.
Can anyone give me an example of how to add an animation to this width change?
<TextInput style={{flex: 1'}} onFocus={() => this.makeBigger()}/>
<TextInput style={{flex: 1'}}/>
// the makeBigger will make the style look like this:
<TextInput style={{flex: 2'}} onFocus={() => this.makeBigger()}/>
<TextInput style={{flex: 1'}}/>