-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: funcsMap[propKey] is not a function when using createText() #169
Comments
same issue only with Text = createText(); |
+1 |
If this can help anyone, I've had the same issue (that |
Have you guys check if your |
hello guys! ive got the same issue here when I add variant='header' to my Text component, any help please version :"@shopify/restyle": "^1.4.0" Text component : export const Text = createText(); theme : type BaseThemeType = typeof BaseTheme & {
}, export const ThemeProvider = ({children}: {children: React.ReactNode}) => ( export const useTheme = () => useRTheme(); |
On my side I figure it out by removing |
Is there any way to get types on textVariants and the like? Or at least a better error message? This keeps biting me as it can be hard to track down which property is incorrect (typo, etc.). |
Hi! I'm using the theme suggested by documentation and createText, nothing else. There are updates on this issue? |
Pessoal, no meu caso, o problema estava no expo router, e como tinha definido um arquivo App.tsx fora do src/app |
<ThemeProvider theme={ theme}> IS MUST IN ORDER TO USE FEATURES OF SHOPIFY RESTYLE
|
The code below works as expected with
v2.0.0
of Restyle, but when I upgrade tov2.1.0
I get the following error.After some digging through my code, it appears that if I remove my
<Title>
component, this error goes away. So there's some issue withcreateText()
perhaps?I looked through the changelog for
2.0.0 → 2.1.0
but don't see anything obvious? If I replace my<Title>
component with a plain<Text>
component, it also works (but of course I lose the Restyle features).The text was updated successfully, but these errors were encountered: