import React, { useMemo } from 'react'; import { Box, BoxProps } from '@mobily/stacks'; import { StyleProp, ViewStyle } from 'react-native'; export type BoxNucleonProps = BoxProps & { backgroundColor?: string; grow?: boolean; }; export default function BoxNucleon({ style, backgroundColor, grow, ...props }: BoxNucleonProps) { const syntheticStyle: StyleProp[] = useMemo( () => [{ backgroundColor, flexGrow: grow ? 1 : 0 }, style], [backgroundColor, grow, style] ); const box = ; // if (typeof color === 'string') { // return ( // {box} // ); // } return box; }