-
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 #29580 from kubabutkiewicz/ts-migration/LinearGrad…
…ient/component [No QA] [TS migration] Migrate 'LinearGradient' component to TypeScript
- Loading branch information
Showing
6 changed files
with
23 additions
and
6 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 LinearGradientNative from 'react-native-linear-gradient'; | ||
import LinearGradient from './types'; | ||
|
||
const LinearGradientImplementation: LinearGradient = LinearGradientNative; | ||
|
||
export default LinearGradientImplementation; |
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 LinearGradientWeb from 'react-native-web-linear-gradient'; | ||
import LinearGradient from './types'; | ||
|
||
const LinearGradientImplementation: LinearGradient = LinearGradientWeb; | ||
|
||
export default LinearGradientImplementation; |
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 LinearGradientNative from 'react-native-linear-gradient'; | ||
|
||
type LinearGradient = typeof LinearGradientNative; | ||
|
||
export default LinearGradient; |
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 @@ | ||
/* eslint-disable @typescript-eslint/consistent-type-definitions */ | ||
declare module 'react-native-web-linear-gradient' { | ||
import LinearGradient from 'react-native-linear-gradient'; | ||
|
||
export default LinearGradient; | ||
} |