-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 #26175 from software-mansion-labs/ts-migration/con…
…vertToLTR2 [TS migration] Migrate 'convertToLTR' lib to TypeScript
- Loading branch information
Showing
4 changed files
with
13 additions
and
8 deletions.
There are no files selected for viewing
10 changes: 5 additions & 5 deletions
10
src/libs/convertToLTR/index.android.js → src/libs/convertToLTR/index.android.ts
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import ConvertToLTR from './types'; | ||
|
||
/** | ||
* Android only - convert RTL text to a LTR text using Unicode controls. | ||
* https://www.w3.org/International/questions/qa-bidi-unicode-controls | ||
* @param {String} text | ||
* @returns {String} | ||
*/ | ||
export default function convertToLTR(text) { | ||
return `\u2066${text}`; | ||
} | ||
const convertToLTR: ConvertToLTR = (text) => `\u2066${text}`; | ||
|
||
export default convertToLTR; |
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,5 @@ | ||
import ConvertToLTR from './types'; | ||
|
||
const convertToLTR: ConvertToLTR = (text) => text; | ||
|
||
export default convertToLTR; |
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,3 @@ | ||
type ConvertToLTR = (text: string) => string; | ||
|
||
export default ConvertToLTR; |