diff --git a/src/libs/Navigation/AppNavigator/ReportScreenWrapper.tsx b/src/libs/Navigation/AppNavigator/ReportScreenWrapper.tsx new file mode 100644 index 000000000000..4fc83ca9fb0b --- /dev/null +++ b/src/libs/Navigation/AppNavigator/ReportScreenWrapper.tsx @@ -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 */} + + + + ); +} + +ReportScreenWrapper.displayName = 'ReportScreenWrapper'; + +export default ReportScreenWrapper; diff --git a/src/styles/utilities/overscrollBehaviorContain/index.js b/src/styles/utilities/overscrollBehaviorContain/index.js deleted file mode 100644 index 1377e4b47d28..000000000000 --- a/src/styles/utilities/overscrollBehaviorContain/index.js +++ /dev/null @@ -1,3 +0,0 @@ -export default { - overscrollBehavior: 'contain', -}; diff --git a/src/styles/utilities/overscrollBehaviorContain/index.native.js b/src/styles/utilities/overscrollBehaviorContain/index.native.js deleted file mode 100644 index ff8b4c56321a..000000000000 --- a/src/styles/utilities/overscrollBehaviorContain/index.native.js +++ /dev/null @@ -1 +0,0 @@ -export default {}; diff --git a/src/styles/utilities/overscrollBehaviorContain/index.native.ts b/src/styles/utilities/overscrollBehaviorContain/index.native.ts new file mode 100644 index 000000000000..fd6b2f496912 --- /dev/null +++ b/src/styles/utilities/overscrollBehaviorContain/index.native.ts @@ -0,0 +1,5 @@ +import OverscrollBehaviorStyles from './types'; + +const overscrollBehaviorContain: OverscrollBehaviorStyles = {}; + +export default overscrollBehaviorContain; diff --git a/src/styles/utilities/overscrollBehaviorContain/index.ts b/src/styles/utilities/overscrollBehaviorContain/index.ts new file mode 100644 index 000000000000..18cbe810d336 --- /dev/null +++ b/src/styles/utilities/overscrollBehaviorContain/index.ts @@ -0,0 +1,7 @@ +import OverscrollBehaviorStyles from './types'; + +const overscrollBehaviorContain: OverscrollBehaviorStyles = { + overscrollBehavior: 'contain', +}; + +export default overscrollBehaviorContain; diff --git a/src/styles/utilities/overscrollBehaviorContain/types.ts b/src/styles/utilities/overscrollBehaviorContain/types.ts new file mode 100644 index 000000000000..1e806eb60642 --- /dev/null +++ b/src/styles/utilities/overscrollBehaviorContain/types.ts @@ -0,0 +1,5 @@ +import {ViewStyle} from 'react-native'; + +type OverscrollBehaviorStyles = Pick; + +export default OverscrollBehaviorStyles;