Skip to content

How to wrap KeyboardAvoidingView in Box? #198

Answered by fregayeg
fregayeg asked this question in Q&A
Discussion options

You must be logged in to vote

Hello! I've found a way to do what I was looking for. It seems its pretty simple that I imagined

type Props = React.ComponentProps<typeof Base & typeof KeyboardAvoidingView> & VariantProps<Theme, 'viewVariants'> & SpacingProps<Theme>;
const KeyboardAvoidingBox = createRestyleComponent<Props, Theme>([spacing, createVariant({ themeKey: 'viewVariants' })], Base);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fregayeg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant