I've tried react-native-hr package - doesn't work for me nor on Android nor on iOS.
Following code is also not suitable because it renders three dots at the end
<Text numberOfLines={1}}>
______________________________________________________________
</Text>
You can also try
react-native-hr-component
Your code:
You can use native element divider.
Install it with:
Then go with:
Source
You could simply use an empty View with a bottom border.
One can use margin in order to change the width of a line and place it center.
if you want to give margin dynamically then you can use Dimension width.
Maybe you should try using react-native-hr something like this:
documentation: https://www.npmjs.com/package/react-native-hr