Skip to content

Commit

Permalink
Merge pull request #32173 from software-mansion-labs/ts/overscrollBeh…
Browse files Browse the repository at this point in the history
…aviorContain

[No QA][TS migration] Migrate 'overscrollBehaviorContain' style to TypeScript
  • Loading branch information
mountiny authored Nov 30, 2023
2 parents 310ccf6 + c988129 commit 9bbb8ec
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/styles/utilities/overscrollBehaviorContain/index.js

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import OverscrollBehaviorStyles from './types';

const overscrollBehaviorContain: OverscrollBehaviorStyles = {};

export default overscrollBehaviorContain;
7 changes: 7 additions & 0 deletions src/styles/utilities/overscrollBehaviorContain/index.ts
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;
5 changes: 5 additions & 0 deletions src/styles/utilities/overscrollBehaviorContain/types.ts
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;

0 comments on commit 9bbb8ec

Please sign in to comment.