diff --git a/apps/src/tests/component-integration-tests/form-sheet/index.ts b/apps/src/tests/component-integration-tests/form-sheet/index.ts new file mode 100644 index 0000000000..eeea81994d --- /dev/null +++ b/apps/src/tests/component-integration-tests/form-sheet/index.ts @@ -0,0 +1,12 @@ +import type { ScenarioGroup } from '@apps/tests/shared/helpers'; +import TestFormSheetWithNestedStackV5 from './test-form-sheet-with-nested-stack-v5'; + +const scenarios = { TestFormSheetWithNestedStackV5 }; + +const FormSheetScenarioGroup: ScenarioGroup = { + name: 'FormSheet Integration Tests', + details: 'Test interaction between FormSheet and different components', + scenarios, +}; + +export default FormSheetScenarioGroup; diff --git a/apps/src/tests/component-integration-tests/form-sheet/test-form-sheet-with-nested-stack-v5/index.tsx b/apps/src/tests/component-integration-tests/form-sheet/test-form-sheet-with-nested-stack-v5/index.tsx new file mode 100644 index 0000000000..259d62cb41 --- /dev/null +++ b/apps/src/tests/component-integration-tests/form-sheet/test-form-sheet-with-nested-stack-v5/index.tsx @@ -0,0 +1,106 @@ +import React, { useState } from 'react'; +import { Button, StyleSheet, Text, View } from 'react-native'; +import { FormSheet } from 'react-native-screens/experimental'; +import type { ScenarioDescription } from '@apps/tests/shared/helpers'; +import { createScenario } from '@apps/tests/shared/helpers'; +import { StackContainer } from '@apps/shared/gamma/containers/stack'; +import { CenteredLayoutView } from '@apps/shared/CenteredLayoutView'; +import { Colors } from '@apps/shared/styling'; +import { StackNavigationButtons } from '@apps/tests/shared/components/stack-v5/StackNavigationButtons'; + +const scenarioDescription: ScenarioDescription = { + name: 'FormSheet with Nested Stack v5', + key: 'test-stack-v5-in-form-sheet-ios', + details: 'Test nesting Stack v5 inside a FormSheet', + platforms: ['ios'], +}; + +export function App() { + const [isOpen, setIsOpen] = useState(false); + + return ( + + FormSheet with nested StackV5 +