Skip to content

Commit

Permalink
fix: regression shadow node for keyboard avoiding view
Browse files Browse the repository at this point in the history
  • Loading branch information
jpudysz committed Jan 20, 2025
1 parent c3b5da8 commit 3bd65d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/createUnistylesElement.native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ export const createUnistylesElement = (Component: any) => React.forwardRef((prop
{...props}
ref={(ref: unknown) => {
if (ref) {
storedRef.current = ref
storedRef.current = Component.name === 'KeyboardAvoidingView'
// @ts-ignore this is special case for KeyboardAvoidingView
? ref.viewRef.current
: ref
}

passForwardedRef(props, ref, forwardedRef)
Expand Down

0 comments on commit 3bd65d0

Please sign in to comment.