Skip to content

Commit

Permalink
💫 Update: Ex - Update Test09
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Apr 28, 2023
1 parent 82f5abc commit 8f2763f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions example/src/examples/Test09.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const CUSTOM_DETENTS: RNIModalCustomSheetDetent[] = [
key: 'custom_75%',
mode: 'relative',
sizeMultiplier: 0.75,
offset: 20,
},
{
key: 'custom_100%',
Expand Down Expand Up @@ -69,10 +70,12 @@ export function Test09(props: ExampleProps) {
}));
}}
onModalDetentDidCompute={({ nativeEvent }) => {
setEventData((prev) => ({
...prev,
detentHeight: nativeEvent.maximumDetentValue,
}));
console.log(
"onModalDetentDidCompute",
+ ` - key: ${nativeEvent.key}`,
+ ` - maximumDetentValue: ${nativeEvent.maximumDetentValue}`
+ ` - computedDetentValue: ${nativeEvent.computedDetentValue}`
);
}}
>
<React.Fragment>
Expand Down

0 comments on commit 8f2763f

Please sign in to comment.