Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import { StyleSheet } from 'react-native';
import ScreenStackHostNativeComponent from '../../../fabric/gamma/ScreenStackHostNativeComponent';
import type { ScreenStackHostProps } from './ScreenStackHost.types';
import type { ScreenStackHostProps } from './StackHost.types';

/**
* EXPERIMENTAL API, MIGHT CHANGE W/O ANY NOTICE
*/
function ScreenStackHost({ children }: ScreenStackHostProps) {
function StackHost({ children }: ScreenStackHostProps) {
return (
<ScreenStackHostNativeComponent style={styles.container}>
{children}
Expand All @@ -20,4 +20,4 @@ const styles = StyleSheet.create({
},
});

export default ScreenStackHost;
export default StackHost;
6 changes: 3 additions & 3 deletions src/components/gamma/stack/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import ScreenStackHost from './ScreenStackHost';
import StackHost from './StackHost';
import StackScreen from './StackScreen';

export { StackScreenLifecycleState } from './StackScreen';

export * from './ScreenStackHost.types';
export * from './StackHost.types';
export * from './StackScreen.types';

const Stack = {
Host: ScreenStackHost,
Host: StackHost,
Screen: StackScreen,
};

Expand Down
2 changes: 1 addition & 1 deletion src/experimental/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

export * from '../components/gamma/split-view/SplitViewHost.types';
export * from '../components/gamma/split-view/SplitViewScreen.types';
export * from '../components/gamma/stack/ScreenStackHost.types';
export * from '../components/gamma/stack/StackHost.types';
export * from '../components/gamma/stack/StackScreen.types';
export * from '../components/safe-area/SafeAreaView.types';
Loading