Skip to content

Commit

Permalink
fix: rest style
Browse files Browse the repository at this point in the history
  • Loading branch information
lpatrun committed Dec 15, 2024
1 parent c38af54 commit ec98ab2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/KeyboardAwareScrollView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const KeyboardAwareScrollView = forwardRef<

const { height } = useWindowDimensions();

const restStyle = (rest?.style?.[0] || {})
const restStyle = (rest?.style && rest?.style?.[0] || {})
const inverted = "transform" in restStyle ? restStyle.transform[0]?.scale === -1 : false

const onRef = useCallback((assignedRef: Reanimated.ScrollView) => {
Expand Down

0 comments on commit ec98ab2

Please sign in to comment.