Skip to content

Commit e6b63ae

Browse files
authored
chore: move gamma components into dedicated directories (#3243)
## Description Moves gamma components (`SplitView`, new `Stack`) into dedicated directories in `src/components/gamma`. Closes software-mansion/react-native-screens-labs#445. ## Changes - move gamma components (`SplitView`, new `Stack`) into dedicated directories in `src/components/gamma` - update imports ## Test code and steps to reproduce Run `TestSplitView`, `TestScreenStack` and verify that the components work correctly. ## Checklist - [x] Included code example that can be used to test this change - [x] Ensured that CI passes
1 parent 618c21f commit e6b63ae

14 files changed

+12
-12
lines changed

src/components/gamma/SplitViewHost.tsx renamed to src/components/gamma/split-view/SplitViewHost.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import { StyleSheet } from 'react-native';
3-
import SplitViewHostNativeComponent from '../../fabric/gamma/SplitViewHostNativeComponent';
3+
import SplitViewHostNativeComponent from '../../../fabric/gamma/SplitViewHostNativeComponent';
44
import type {
55
SplitViewDisplayMode,
66
SplitViewHostProps,

src/components/gamma/SplitViewScreen.tsx renamed to src/components/gamma/split-view/SplitViewScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import { StyleSheet } from 'react-native';
3-
import SplitViewScreenNativeComponent from '../../fabric/gamma/SplitViewScreenNativeComponent';
3+
import SplitViewScreenNativeComponent from '../../../fabric/gamma/SplitViewScreenNativeComponent';
44
import { SplitViewScreenProps } from './SplitViewScreen.types';
55

66
/**

src/components/gamma/ScreenStackHost.tsx renamed to src/components/gamma/stack/ScreenStackHost.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import { StyleSheet } from 'react-native';
3-
import ScreenStackHostNativeComponent from '../../fabric/gamma/ScreenStackHostNativeComponent';
3+
import ScreenStackHostNativeComponent from '../../../fabric/gamma/ScreenStackHostNativeComponent';
44
import type { ScreenStackHostProps } from './ScreenStackHost.types';
55

66
/**

src/components/gamma/StackScreen.tsx renamed to src/components/gamma/stack/StackScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import { StyleSheet } from 'react-native';
3-
import StackScreenNativeComponent from '../../fabric/gamma/StackScreenNativeComponent';
3+
import StackScreenNativeComponent from '../../../fabric/gamma/StackScreenNativeComponent';
44
import type { NativeSyntheticEvent } from 'react-native';
55
import { StackScreenProps } from './StackScreen.types';
66

0 commit comments

Comments
 (0)