私はビューを移動するためにreact-nativeでスクロールビューを使用しています、私はこのように書きました scrollView.scrollTo({ y: newY, animated: true });
scrolldown(){
this.refs.ScrollView.scrollTo({y:windowSize.width*2/9,animated: true});
}
scroll(){
this.refs.ScrollView.scrollTo({y:windowSize.width*2/23,animated: true});
}
<ScrollView ref='ScrollView'>
<View style={styles.inputContainer}>
<Image style={styles.inputPassword} source={require('image!locker')}/>
<TextInput
ref='SecondInput'
password={true}
style={styles.email}
value={this.state.password}
placeholder="Password"
onFocus={this.scrolldown.bind(this)}
returnKeyType='next'
onChange={this.handlePasswordChange.bind(this)}
/>
</View>
.
.
.
.
</ScrollView>
IOS では問題なく動作しますが、Android では動作しません。解決方法を教えてください。