-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TS migration] Migrate 'overscrollBehaviorContain' style to TypeScript
- Loading branch information
1 parent
1234b0d
commit f85b1bd
Showing
6 changed files
with
44 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from 'react'; | ||
import ReportScreen from '@pages/home/ReportScreen'; | ||
import ReportScreenIDSetter from './ReportScreenIDSetter'; | ||
|
||
type Props = { | ||
route: any; | ||
navigation: any; | ||
}; | ||
|
||
function ReportScreenWrapper({route, navigation}: Props) { | ||
// The ReportScreen without the reportID set will display a skeleton | ||
// until the reportID is loaded and set in the route param | ||
return ( | ||
<> | ||
{/* @ts-expect-error explanation */} | ||
<ReportScreen route={route} /> | ||
<ReportScreenIDSetter | ||
route={route} | ||
navigation={navigation} | ||
/> | ||
</> | ||
); | ||
} | ||
|
||
ReportScreenWrapper.displayName = 'ReportScreenWrapper'; | ||
|
||
export default ReportScreenWrapper; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
src/styles/utilities/overscrollBehaviorContain/index.native.ts
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,5 @@ | ||
import OverscrollBehaviorStyles from './types'; | ||
|
||
const overscrollBehaviorContain: OverscrollBehaviorStyles = {}; | ||
|
||
export default overscrollBehaviorContain; |
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 OverscrollBehaviorStyles from './types'; | ||
|
||
const overscrollBehaviorContain: OverscrollBehaviorStyles = { | ||
overscrollBehavior: 'contain', | ||
}; | ||
|
||
export default overscrollBehaviorContain; |
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,5 @@ | ||
import {ViewStyle} from 'react-native'; | ||
|
||
type OverscrollBehaviorStyles = Pick<ViewStyle, 'overscrollBehavior'>; | ||
|
||
export default OverscrollBehaviorStyles; |