Add a .flowconfig, remove more unnecessary code
This commit is contained in:
parent
a57e01d693
commit
5d39430258
|
@ -0,0 +1,32 @@
|
||||||
|
[ignore]
|
||||||
|
|
||||||
|
# We fork some components by platform.
|
||||||
|
.*/*.web.js
|
||||||
|
.*/*.android.js
|
||||||
|
|
||||||
|
# Some modules have their own node_modules with overlap
|
||||||
|
.*/node_modules/node-haste/.*
|
||||||
|
|
||||||
|
# Ignore react-tools where there are overlaps, but don't ignore anything that
|
||||||
|
# react-native relies on
|
||||||
|
.*/node_modules/react-tools/src/vendor/core/ExecutionEnvironment.js
|
||||||
|
.*/node_modules/react-tools/src/browser/eventPlugins/ResponderEventPlugin.js
|
||||||
|
.*/node_modules/react-tools/src/browser/ui/React.js
|
||||||
|
.*/node_modules/react-tools/src/core/ReactInstanceHandles.js
|
||||||
|
.*/node_modules/react-tools/src/event/EventPropagators.js
|
||||||
|
.*/node_modules/flux/lib/invariant.js
|
||||||
|
|
||||||
|
# Ignore jest
|
||||||
|
.*/node_modules/jest-cli/.*
|
||||||
|
|
||||||
|
# Ignore examples
|
||||||
|
.*/Examples/.*
|
||||||
|
|
||||||
|
[include]
|
||||||
|
|
||||||
|
[libs]
|
||||||
|
node_modules/react-native/Libraries/react-native/react-native-interface.js
|
||||||
|
interfaces.js
|
||||||
|
|
||||||
|
[options]
|
||||||
|
module.system=haste
|
|
@ -7,6 +7,6 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"react-native": "^0.3.10",
|
"react-native": "^0.3.10",
|
||||||
"react-native-linear-gradient": "^0.1.6"
|
"react-native-linear-gradient": "^0.1.7"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
var React = require('React');
|
/**
|
||||||
var NativeModules = require('NativeModules');
|
* @providesModule LinearGradient
|
||||||
|
* @flow
|
||||||
|
*/
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
var ReactIOSViewAttributes = require('ReactIOSViewAttributes');
|
var ReactIOSViewAttributes = require('ReactIOSViewAttributes');
|
||||||
var StyleSheet = require('StyleSheet');
|
|
||||||
var createReactIOSNativeComponentClass = require('createReactIOSNativeComponentClass');
|
var createReactIOSNativeComponentClass = require('createReactIOSNativeComponentClass');
|
||||||
var PropTypes = require('ReactPropTypes');
|
|
||||||
var NativeMethodsMixin = require('NativeMethodsMixin');
|
|
||||||
var flattenStyle = require('flattenStyle');
|
|
||||||
var merge = require('merge');
|
var merge = require('merge');
|
||||||
var deepDiffer = require('deepDiffer');
|
var deepDiffer = require('deepDiffer');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue