Skip to content

Commit

Permalink
💫 Update: Ex - Test09
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed May 3, 2023
1 parent 241af10 commit 1b45390
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion example/src/examples/Test09.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,31 @@ export function Test09(props: ExampleProps) {
}}
onModalDetentDidCompute={({ nativeEvent }) => {
console.log(
"onModalDetentDidCompute"
"onModalDetentDidCompute"
+ ` - key: ${nativeEvent.key}`
+ ` - maximumDetentValue: ${nativeEvent.maximumDetentValue}`
+ ` - computedDetentValue: ${nativeEvent.computedDetentValue}`
);
}}
onModalSwipeGestureStart={({ nativeEvent }) => {
console.log(
"onModalSwipeGestureStart"
+ ` - position: ${JSON.stringify(nativeEvent.position)}`
);
}}
onModalSwipeGestureDidEnd={({ nativeEvent }) => {
console.log(
"onModalSwipeGestureDidEnd"
+ ` - position: ${JSON.stringify(nativeEvent.position)}`
);
}}
onModalDidSnap={({ nativeEvent }) => {
console.log(
"onModalDidSnap"
+ ` - modalContentSize: ${JSON.stringify(nativeEvent.modalContentSize)}`
+ ` - selectedDetentIdentifier: ${nativeEvent.selectedDetentIdentifier}`
);
}}
>
<React.Fragment>
<CardBody style={styles.modalCard}>
Expand Down

0 comments on commit 1b45390

Please sign in to comment.