我尝试了 react-native-hr 软件包,但它对我不起作用,对 Android 和 iOS 也不起作用。
以下代码也不合适,因为它在末尾显示了三个点
<Text numberOfLines={1}}>
______________________________________________________________
</Text>
import { View, Dimensions } from 'react-native'
var { width, height } = Dimensions.get('window')
// Create Component
<View style={{
borderBottomColor: 'black',
borderBottomWidth: 0.5,
width: width - 20,}}>
</View>