Skip to content

Commit

Permalink
💫 Update: Ex - AdaptiveModalViewTest01
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Jan 12, 2024
1 parent 335b97d commit cdf5a8a
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions example/src/examples/AdaptiveModalViewTest01.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,23 @@ export function AdaptiveModalViewTest01(props: ExampleItemProps) {
setModalConfigPresetCounter
] = React.useState(0);

const currentModalConfigPreset = (() => {
const index = modalConfigPresetCounter % AdaptiveModalConfigPresets.length;
return AdaptiveModalConfigPresets[index];;
})();
const modalConfigPresetIndex =
modalConfigPresetCounter % AdaptiveModalConfigPresets.length;

const currentModalConfigPreset =
AdaptiveModalConfigPresets[modalConfigPresetIndex];

const [
modalContentAnchorModeCounter,
setModalContentAnchorModeCounter
] = React.useState(0);

const modalConfigPresetIndex =
modalContentAnchorModeCounter % RNIModalContentAnchorModes.length;

const currentModalContentAnchorMode =
RNIModalContentAnchorModes[modalConfigPresetIndex];
const currentModalContentAnchorMode = (() => {
const index =
modalContentAnchorModeCounter % RNIModalContentAnchorModes.length;

return RNIModalContentAnchorModes[index];
})();

const [
modalAnimationModeCounter,
Expand Down

0 comments on commit cdf5a8a

Please sign in to comment.