import React, { useContext } from 'react'; import { Text, Divider, useTheme } from 'react-native-elements'; import { ScrollView, StyleSheet, View } from 'react-native'; import { Header, SubHeader } from '../components/header'; type DividerViewTypes = {}; const DividerView: React.FunctionComponent = (props) => { const { theme } = useTheme(); return ( <>
Horizontal Divider Horizontal Divider with width and color Horizontal Divider with left inset Horizontal Divider with right inset Horizontal Divider with middle inset Welcome to RNE App Left text Right text Left text Right text Left text Right text ); }; const styles = StyleSheet.create({ horizontal: { marginBottom: 10, }, horizontalText: { textAlign: 'center', fontSize: 16, marginVertical: 10, }, vertical: { marginBottom: 10, display: 'flex', flexDirection: 'row', justifyContent: 'space-evenly', }, }); export default DividerView;