Posts by Erikson Gonçalves • 1 point
1 post
-
-1
votes1
answer23
viewsA: How do I pass a parameter to an external function from within the STYLED-COMPONENTS using Reactjs with Typescript?
You would do so... import styled, { css } from 'styled-components'; function myFunc(arr: Object[]) { return css` // SUAS PROPS CSS `; } export const Wrap = styled.View<{ myArr: Object[] }>`…