When I copy and paste the code into my project I get the following error:
Type 'ForwardedRef<typeof Text | Component<TextProps, any, any>>' is not assignable to type 'LegacyRef<typeof Text> | undefined'.
Type 'MutableRefObject<typeof Text | Component<TextProps, any, any> | null>' is not assignable to type 'LegacyRef<typeof Text> | undefined'.
Type 'MutableRefObject<typeof Text | Component<TextProps, any, any> | null>' is not assignable to type 'RefObject<typeof Text>'.
Types of property 'current' are incompatible.
Type 'typeof Text | Component<TextProps, any, any> | null' is not assignable to type 'typeof Text | null'.
Property 'prototype' is missing in type 'Component<TextProps, any, any>' but required in type 'typeof Text'.ts(2322)
index.d.ts(303, 9): The expected type comes from property 'ref' which is declared here on type 'IntrinsicAttributes & Omit<NativeTextProps, "style"> & WebTextProps'
It appears on the H* elements of expo elements on the ref prop. Anyone knows how to fix this?
I am using expo elements v0.10.1.