Ich möchte, dies zu tun, in dem sowohl die Texte auf 1 horizontale Linie ist und einer von ihnen ist in der Mitte und der andere ist auf dem rechten Seite:React Native: Wie richtet man Inline-Text aus?
Das ist, was ich habe, ignorieren die Farben (es gar nicht funktioniert):
Stile:
rowLabelText: {
color: "#0B1219",
fontFamily: Fonts.Knockout31JuniorMiddleWeight,
fontSize: 16.0,
},
Markup:
<View style={{flexDirection: 'row', height: 30, flexWrap: 'wrap', backgroundColor: 'green'}}>
<View style={{ flex: 1, backgroundColor: 'red', justifyContent: 'center', alignSelf: 'center'}}>
<Text style={styles.rowLabelText}>
adjkfdasjkfaskj
</Text>
</View>
<View style={{ flex: 1, backgroundColor: 'blue', justifyContent: 'center', alignSelf: 'flex-end' }}>
<Text style={styles.rowLabelText}>
adjkfdasjkfaskj
</Text>
</View>
</View>
Ich habe Probleme. Könnte mir jemand helfen?
http://stackoverflow.com/q/34753717/3597276 –