Skip to content

Commit aa78cba

Browse files
committed
1 parent ead0aba commit aa78cba

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

.flowconfig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@
2424
.*/node_modules/.*/__tests?__/.*
2525
.*/node_modules/.*/examples/.*
2626
.*/node_modules/react-native-mock/.*
27-
; try removing this line in react-native 0.45
27+
; try removing this line in react-native 0.46
2828
.*/node_modules/react-native/local-cli/server/util/attachHMRServer.js
29+
; remove this after rn-linear-gradient updates
30+
.*/node_modules/react-native-linear-gradient/.*
2931

3032
[include]
3133

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// flow-typed signature: 3d55cda33e6de86f43a0fd0a1dba6255
2+
// flow-typed version: <<STUB>>/react-native-linear-gradient_v2.1.0/flow_v0.45.0
3+
4+
/**
5+
* This is an autogenerated libdef stub for:
6+
*
7+
* 'react-native-linear-gradient'
8+
*
9+
* Fill this stub out by replacing all the `any` types.
10+
*
11+
* Once filled out, we encourage you to share your work with the
12+
* community by sending a pull request to:
13+
* https://github.com/flowtype/flow-typed
14+
*/
15+
16+
import {View} from 'react-native'
17+
type LinearGradientProps = {
18+
start?: Array<number> | {x: number, y: number};
19+
end?: Array<number> | {x: number, y: number};
20+
colors: Array<string>;
21+
locations?: Array<number>;
22+
} & typeof(View);
23+
24+
declare module 'react-native-linear-gradient' {
25+
declare module.exports: Class<React$Component<void, LinearGradientProps, any>>;
26+
}

0 commit comments

Comments
 (0)