/**
 * ✔ hoverStyle (hover-class)
 * ✘ hover-stop-propagation
 * ✔ hoverStartTime
 * ✔ hoverStayTime
 */ import * as React from 'react' ; import { View , Text , } from 'react-native' ; import { extracteTextStyle } from '../../utils' ; import ClickableSimplified from '../ClickableSimplified' ; import { _ViewProps } from './PropsType' ; const stringToText = ( child , props ) => { return ( typeof child === 'string' || typeof child === 'number' ) ? < Text { ... props } > { child } < /Text> : child; } ; const _View = ( props ) => { const textStyle = extracteTextStyle ( props . style ) ; const child = Array . isArray ( props . children ) ? props . children . map ( ( c , i ) => stringToText ( c , { key : i , ... props , style : textStyle } ) ) : stringToText ( props . children , { ... props , style : textStyle } ) ; return ( < View style = { props . style } { ... props } > { child } < /View>); } ; _View . displayName = '_View' ; export { _View } ; export default ClickableSimplified ( _View ) ;