Skip to content

Commit

Permalink
Move GHContext from gesture-handler to native-stack
Browse files Browse the repository at this point in the history
  • Loading branch information
tboba committed Jan 19, 2024
1 parent a63cdec commit 409d655
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/gesture-handler/GestureDetectorProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { GHContext } from './context/GHContext';
import { GHContext } from 'react-native-screens';
import ScreenGestureDetector from './ScreenGestureDetector';
import type { GestureProviderProps } from '../native-stack/types';

Expand Down
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ export { default as FullWindowOverlay } from './components/FullWindowOverlay';
export { default as NativeScreensModule } from './fabric/NativeScreensModule';

/*
* Gesture Handler
* Contexts
*/
export { GHContext } from './gesture-handler/context/GHContext';
export { GHContext } from './native-stack/contexts/GHContext';

/*
* Utils
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { PropsWithChildren } from 'react';
import { GestureProviderProps } from '../../native-stack/types';
import { GestureProviderProps } from '../types';

// context to be used when the user wants full screen swipe (see `gesture-handler` folder in repo)
export const GHContext = React.createContext(
Expand Down

0 comments on commit 409d655

Please sign in to comment.