Skip to content

Commit

Permalink
[TS migration] Migrate 'willBlurTextInputOnTapOutside' lib to TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
blazejkustra committed Aug 28, 2023
1 parent dfb7e23 commit dd46aa7
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/libs/willBlurTextInputOnTapOutside/index.js

This file was deleted.

1 change: 0 additions & 1 deletion src/libs/willBlurTextInputOnTapOutside/index.native.js

This file was deleted.

5 changes: 5 additions & 0 deletions src/libs/willBlurTextInputOnTapOutside/index.native.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import WillBlurTextInputOnTapOutside from './types';

const willBlurTextInputOnTapOutside: WillBlurTextInputOnTapOutside = () => false;

export default willBlurTextInputOnTapOutside;
5 changes: 5 additions & 0 deletions src/libs/willBlurTextInputOnTapOutside/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import WillBlurTextInputOnTapOutside from './types';

const willBlurTextInputOnTapOutside: WillBlurTextInputOnTapOutside = () => true;

export default willBlurTextInputOnTapOutside;
3 changes: 3 additions & 0 deletions src/libs/willBlurTextInputOnTapOutside/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
type WillBlurTextInputOnTapOutside = () => boolean;

export default WillBlurTextInputOnTapOutside;

0 comments on commit dd46aa7

Please sign in to comment.