Попытка создать заголовок в react-native. Мне удалось зайти так далеко, но я хотел, чтобы заголовок был центрирован, а правильный текст был выровнен по правому краю. Есть ли простая комбинация с использованием flexbox для достижения этого?
<View style={{marginTop: 20, backgroundColor:'yellow'}}>
<View style={{flex: 1, flexDirection: 'row', alignItems:'center', justifyContent:'space-between', marginTop: 20, marginBottom: 20, borderColor:'red', borderWidth:1}}>
<Text style={{ flex: 1, alignItems:'center', justifyContent:'center', borderColor:'red', borderWidth:1}}>Left with long text</Text>
<Text style={{ flex: 1, alignItems:'center', justifyContent:'center', borderColor:'red', borderWidth:1}}>Title</Text>
<Text style={{ flex: 1, alignItems:'center', justifyContent:'center', borderColor:'red', borderWidth:1}}>Right</Text>
</View>
</View>