Skip to content

Commit

Permalink
Merge pull request #26177 from software-mansion-labs/ts-migration/sho…
Browse files Browse the repository at this point in the history
…uldDelayFocus

[TS migration] Migrate 'shouldDelayFocus' lib to TypeScript
  • Loading branch information
pecanoro authored Sep 1, 2023
2 parents 185ba7b + 7a7515a commit 2137b05
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/libs/shouldDelayFocus/index.android.js

This file was deleted.

6 changes: 6 additions & 0 deletions src/libs/shouldDelayFocus/index.android.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import ShouldDelayFocus from './types';

/** When using transitions on Android, we need to delay focusing the text inputs for the keyboard to open. */
const shouldDelayFocus: ShouldDelayFocus = true;

export default shouldDelayFocus;
1 change: 0 additions & 1 deletion src/libs/shouldDelayFocus/index.js

This file was deleted.

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

const shouldDelayFocus: ShouldDelayFocus = false;

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

export default ShouldDelayFocus;

0 comments on commit 2137b05

Please sign in to comment.