-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25745 from software-mansion-labs/ts-migration/get…
…Platform [No QA][TS migration] Migrate 'getPlatform' constants dependency to TypeScript
- Loading branch information
Showing
9 changed files
with
30 additions
and
20 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import CONST from '../../CONST'; | ||
import Platform from './types'; | ||
|
||
export default function getPlatform(): Platform { | ||
return CONST.PLATFORM.ANDROID; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import CONST from '../../CONST'; | ||
import Platform from './types'; | ||
|
||
export default function getPlatform(): Platform { | ||
return CONST.PLATFORM.DESKTOP; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import CONST from '../../CONST'; | ||
import Platform from './types'; | ||
|
||
export default function getPlatform(): Platform { | ||
return CONST.PLATFORM.IOS; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import CONST from '../../CONST'; | ||
import Platform from './types'; | ||
|
||
export default function getPlatform(): Platform { | ||
return CONST.PLATFORM.WEB; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import {ValueOf} from 'type-fest'; | ||
import CONST from '../../CONST'; | ||
|
||
type Platform = ValueOf<typeof CONST.PLATFORM>; | ||
|
||
export default Platform; |