【发布时间】:2017-06-16 09:50:18
【问题描述】:
我正在使用Native Base 开发我的React Native 应用程序。我有一个简单的登录表单,如下所示。
查看
<Container>
<Content>
<InputGroup>
<Icon name="ios-person" style={{ color: '#969696' }} />
<Input placeholder="Email" autoFocus={ true} style={{ color: '#4b4b4b' }} />
</InputGroup>
<InputGroup>
<Icon name="ios-unlock" style={{ color: '#969696' }} />
<Input placeholder="Password" secureTextEntry style={{ color: '#4b4b4b' }} />
</InputGroup>
<Button style={ styles.loginButton}>
Login
</Button>
</Content>
</Container>
样式
const styles = StyleSheet.create({
loginButton: {
alignSelf : 'stretch',
position: 'absolute',
bottom:0,
left:0,
backgroundColor : '#4990e2',
borderRadius : 0
}
});
输出
如何让登录按钮在屏幕底部完全伸展?
PS:我是初学者。
【问题讨论】:
标签: android ios facebook react-native jsx