-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🛠 Refactor: Move to
ModalViewConstants
Summary: Move `VirtualizedListContext`, and `hasScrollViewContext` from `src/components/ModalView/ModalView` to `src/components/ModalView/ModalViewConstants`.
- Loading branch information
1 parent
b5dba75
commit 544a2d6
Showing
2 changed files
with
12 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import React from 'react'; | ||
import { ScrollView } from 'react-native'; | ||
|
||
export const VirtualizedListContext = React.createContext(null); | ||
|
||
// fix for react-native 0.60 | ||
export const hasScrollViewContext: boolean = | ||
(ScrollView as any).Context?.Provider != null; |