Skip to content

Commit

Permalink
Fix default layout transition (software-mansion#2442)
Browse files Browse the repository at this point in the history
## Description

Fix native stack modal example
  • Loading branch information
Szymon20000 authored Sep 21, 2021
1 parent bd060f3 commit 0622a4b
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@ import {
EntryExitAnimationFunction,
} from '../animationBuilder/commonTypes';

export const DefaultLayout: LayoutAnimationFunction = (_) => {
export const DefaultLayout: LayoutAnimationFunction = (values) => {
'worklet';
return {
initialValues: {},
initialValues: {
originX: values.originX,
originY: values.originY,
width: values.width,
height: values.height,
},
animations: {},
};
};
Expand Down

0 comments on commit 0622a4b

Please sign in to comment.