Replies: 1 comment
-
the nesting of multiple |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello dear RSD team
We are implementing an interop layer on our app but we still want to use
ScrollView
which has no built-in support by RSD.So we came up with this solution for the native part following the advice here:
CustomScrollView.native.ts
But there are a couple of tiny issues here:
props
we have props that are not compatible withrsd
's<html.div>
so when we spread it (<compat.native style={style} {...props}>
) we get an error that there are invalid props. We have two options now:{...props}
: The issue is that we still want the props (especially a11y) to be processed byuseNativeProps
CustomScrollViewProps
, I have to definecontentContainerStyle?: Parameters<typeof h.div>[0]["style"];
because as far as I can tell, the props aren't exported from the module. Is there a way to use it in a cleaner way?I would appreciate your advice here
Beta Was this translation helpful? Give feedback.
All reactions