license import React from 'react' ; import { View , ViewProps , } from 'react-native' ; import { Overwrite , LiteralUnion } from '../../devsupport' ; import { styled , StyledComponentProps , } from '../../theme' ; type DividerStyledProps = Overwrite < StyledComponentProps , { appearance ? : LiteralUnion < 'default' > ; } > ; export type DividerProps = ViewProps & DividerStyledProps ; export type DividerElement = React . ReactElement < DividerProps > ; property overview-example @ styled ( 'Divider' ) export class Divider extends React . Component < DividerProps > { public render ( ) { const { eva , style , ... viewProps } = this . props ; return ( < View { ... viewProps } style = { [ eva . style , style ] } / > ) ; } }