なぜそれが醜い左の灰色のマージンを示していますか?私は多くの異なるListで試してみましたが、それでもまだ灰色の余白が残っています。これは共通ですか?
私はネイティブ・ベースの文書に従っ:http://docs.nativebase.io/Components.html#list-avatar-headref
import { Container, Content, List, ListItem, Text, Left, Body, Thumbnail } from 'native-base';
import { View, AsyncStorage } from 'react-native';
...
render() {
return (
<View style={{flex:1}}>
<Content>
<List>
{this._renderProfile()}
<ListItem>
<Left>
<Text>! Edit Profile</Text>
</Left>
</ListItem>
<ListItem onPress={this._changePassword}>
<Left>
<Text>Change Password </Text>
</Left>
</ListItem>
<ListItem>
<Left>
<Text>! Language Setting</Text>
</Left>
</ListItem>
<ListItem onPress={this._showModal}>
<Left>
<Text>Logout</Text>
</Left>
</ListItem>
</List>
</Content>
{this._drawModal()}
</View>
p.sは、UIのためのネイティブ・ベースを使用して好きですか?
大変!出来た! marginLeftとpaddingLeftのために-15と15をどうやって作りましたか? '15 'はすべてのモバイルで動作しますか? –
クロスプラットフォームとなるスペースは15個あります。メソッドは正常に動作します。私も使用しています。 –