像这样,当我触摸TextInput,键盘显示时,我希望btn始终固定屏幕底部......但它不起作用..我怎么办?
我的代码就像这样:
<Container style={{position: 'relative',}}>
...
<TextInput placeholder="input something"></TextInput>
<View style={{position: 'absolute', left: 0, bottom: 0, width: '100%'}}>
<Separator style={{height:10}}></Separator>
<Button style={disabledBtn} block disabled>
<Text style={{color:'#fff'}}>ok</Text>
</Button>
<Separator style={{height:5}}></Separator>
</View>
</Container>