File tree Expand file tree Collapse file tree 10 files changed +78
-15
lines changed
packages/react-native-reanimated/src/css/component Expand file tree Collapse file tree 10 files changed +78
-15
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"extends" : " ../../tsconfig.json" ,
3
3
"compilerOptions" : {
4
- "plugins" : [{ "name" : " ./resolver.js" }],
5
4
"baseUrl" : " ." ,
6
5
"paths" : {
7
6
"@/*" : [" src/*" ]
Original file line number Diff line number Diff line change
1
+ declare module '*.jpg' {
2
+ import type { ImageSourcePropType } from 'react-native' ;
3
+
4
+ const value : ImageSourcePropType ;
5
+ export default value ;
6
+ }
7
+
8
+ declare module '*.png' {
9
+ import type { ImageSourcePropType } from 'react-native' ;
10
+
11
+ const value : ImageSourcePropType ;
12
+ export default value ;
13
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
"extends" : " ../../tsconfig.json" ,
3
+ "compilerOptions" : {
4
+ "baseUrl" : " ." ,
5
+ "paths" : {
6
+ "@/*" : [" ../common-app/src/*" ]
7
+ }
8
+ },
3
9
"exclude" : [" node_modules" , " metro.config.js" ]
4
10
}
Original file line number Diff line number Diff line change
1
+ declare module '*.jpg' {
2
+ import type { ImageSourcePropType } from 'react-native' ;
3
+
4
+ const value : ImageSourcePropType ;
5
+ export default value ;
6
+ }
7
+
8
+ declare module '*.png' {
9
+ import type { ImageSourcePropType } from 'react-native' ;
10
+
11
+ const value : ImageSourcePropType ;
12
+ export default value ;
13
+ }
Original file line number Diff line number Diff line change 1
1
{
2
- "extends" : " ../../tsconfig.json"
3
- // "compilerOptions": {
4
- // "baseUrl": ".",
5
- // "paths": {
6
- // "react-native-reanimated": ["../"],
7
- // "react": ["./node_modules/@types/react"]
8
- // }
9
- // },
10
- // "exclude": []
2
+ "extends" : " ../../tsconfig.json" ,
3
+ "compilerOptions" : {
4
+ "baseUrl" : " ." ,
5
+ "paths" : {
6
+ "@/*" : [" ../common-app/src/*" ]
7
+ // "react": ["./node_modules/@types/react"]
8
+ }
9
+ }
11
10
}
Original file line number Diff line number Diff line change
1
+ declare module '*.jpg' {
2
+ import type { ImageSourcePropType } from 'react-native' ;
3
+
4
+ const value : ImageSourcePropType ;
5
+ export default value ;
6
+ }
7
+
8
+ declare module '*.png' {
9
+ import type { ImageSourcePropType } from 'react-native' ;
10
+
11
+ const value : ImageSourcePropType ;
12
+ export default value ;
13
+ }
Original file line number Diff line number Diff line change 1
1
{
2
- "extends" : " ../../tsconfig.json"
2
+ "extends" : " ../../tsconfig.json" ,
3
+ "compilerOptions" : {
4
+ "baseUrl" : " ." ,
5
+ "paths" : {
6
+ "@/*" : [" ../common-app/src/*" ]
7
+ }
8
+ }
3
9
}
Original file line number Diff line number Diff line change
1
+ declare module '*.jpg' {
2
+ import type { ImageSourcePropType } from 'react-native' ;
3
+
4
+ const value : ImageSourcePropType ;
5
+ export default value ;
6
+ }
7
+
8
+ declare module '*.png' {
9
+ import type { ImageSourcePropType } from 'react-native' ;
10
+
11
+ const value : ImageSourcePropType ;
12
+ export default value ;
13
+ }
Original file line number Diff line number Diff line change 2
2
"extends" : " expo/tsconfig.base" ,
3
3
"compilerOptions" : {
4
4
"strict" : true ,
5
+ "baseUrl" : " ../.." ,
5
6
"paths" : {
6
- "@/*" : [" ./*" ],
7
- "react-native-reanimated" : [" ../. ./packages/react-native-reanimated/src" ]
7
+ "@/*" : [" ./apps/common-app/src/ *" ]
8
+ // "react-native-reanimated": ["./packages/react-native-reanimated/src"]
8
9
}
9
10
},
10
11
"include" : [" **/*.ts" , " **/*.tsx" ]
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
- import { forwardRef } from 'react' ;
2
+ import React from 'react' ;
3
3
import type {
4
4
FunctionComponent ,
5
5
ComponentClass ,
@@ -56,7 +56,7 @@ export default function createAnimatedComponent<P extends object>(
56
56
}
57
57
}
58
58
59
- return forwardRef < Component > ( ( props , ref ) => {
59
+ return React . forwardRef < Component > ( ( props , ref ) => {
60
60
return (
61
61
< AnimatedComponent
62
62
{ ...props }
You can’t perform that action at this time.
0 commit comments