react native typescript component as prop code example Example: react native typescript children prop interface Props { children: React.ReactNode; }