You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when the as prop is used in a new component, the props from the new component are no type-safe. Example:
importstylfrom"react-native-styl"import{Text,TouchableOpacity}from"react-native"constBase=styl(Text)({padding: 16})// onPress is not typed correctly<Baseas={TouchableOpacity}onPress={()=>null}><Text>TouchableOpacity</Text></Base>
The goal here is when the component receives a component through as, the type needs to infer and get the props from the new component, and pass it to the render.
The text was updated successfully, but these errors were encountered:
Currently, when the
as
prop is used in a new component, the props from the new component are no type-safe. Example:The goal here is when the component receives a component through
as
, the type needs to infer and get the props from the new component, and pass it to the render.The text was updated successfully, but these errors were encountered: