javascript Facebook上的文字“或”
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了javascript Facebook上的文字“或”相关的知识,希望对你有一定的参考价值。
import React, { Component } from "react";
import { View, StyleSheet, Text } from "react-native";
export default class TextOnLine extends Component {
render() {
return (
<View style={styles.container}>
<View style={styles.horizontalLine}/>
<View style={styles.orTextContainer}>
<Text style={styles.orText}>
HOẶC
</Text>
</View>
<View style={styles.horizontalLine}/>
</View>
);
};
}
const styles = StyleSheet.create({
container: {
marginLeft: 15,
marginRight: 15,
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'center'
},
orTextContainer: {
width: '15%',
justifyContent: 'center',
alignItems: 'center',
},
orText: {
fontSize: 11,
fontWeight: '200',
},
horizontalLine: {
width: '25%',
borderTopWidth: 0.5,
borderColor: '#424242'
}
});
以上是关于javascript Facebook上的文字“或”的主要内容,如果未能解决你的问题,请参考以下文章