forked from Expensify/App
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
55 additions
and
3 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
src/components/BlockingViews/ForceFullScreenView/index.native.tsx
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,9 @@ | ||
import type ForceFullScreenViewProps from './types'; | ||
|
||
function ForceFullScreenView({children}: ForceFullScreenViewProps) { | ||
return children; | ||
} | ||
|
||
ForceFullScreenView.displayName = 'ForceFullScreenView'; | ||
|
||
export default ForceFullScreenView; |
18 changes: 18 additions & 0 deletions
18
src/components/BlockingViews/ForceFullScreenView/index.tsx
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,18 @@ | ||
import React from 'react'; | ||
import {View} from 'react-native'; | ||
import useThemeStyles from '@hooks/useThemeStyles'; | ||
import type ForceFullScreenViewProps from './types'; | ||
|
||
function ForceFullScreenView({children, forceFullPage = false}: ForceFullScreenViewProps) { | ||
const styles = useThemeStyles(); | ||
|
||
if (forceFullPage) { | ||
return <View style={forceFullPage && styles.forcedBlockingViewContainer}>{children}</View>; | ||
} | ||
|
||
return children; | ||
} | ||
|
||
ForceFullScreenView.displayName = 'ForceFullScreenViewProps'; | ||
|
||
export default ForceFullScreenView; |
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,7 @@ | ||
import type ChildrenProps from '@src/types/utils/ChildrenProps'; | ||
|
||
type ForceFullScreenViewProps = ChildrenProps & { | ||
forceFullPage?: boolean; | ||
}; | ||
|
||
export default ForceFullScreenViewProps; |
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
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