Skip to content

Commit

Permalink
Merge pull request #25849 from software-mansion-labs/ts-migration/ita…
Browse files Browse the repository at this point in the history
…lic-style

[No QA] [TS migration] Migrate 'italic' style to TypeScript
  • Loading branch information
cristipaval authored Aug 24, 2023
2 parents 7a86d28 + 91571ea commit b0c43dc
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
3 changes: 0 additions & 3 deletions src/styles/italic/index.android.js

This file was deleted.

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

const italic: ItalicStyles = 'normal';

export default italic;
3 changes: 0 additions & 3 deletions src/styles/italic/index.js

This file was deleted.

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

const italic: ItalicStyles = 'italic';

export default italic;
6 changes: 6 additions & 0 deletions src/styles/italic/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import {CSSProperties} from 'react';
import {TextStyle} from 'react-native';

type ItalicStyles = (TextStyle | CSSProperties)['fontStyle'];

export default ItalicStyles;

0 comments on commit b0c43dc

Please sign in to comment.