Add a .flowconfig, remove more unnecessary code

This commit is contained in:
Brent Vatne 2015-04-13 22:10:00 -07:00
parent a57e01d693
commit 5d39430258
3 changed files with 40 additions and 7 deletions

32
.flowconfig Normal file
View File

@ -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

View File

@ -7,6 +7,6 @@
},
"dependencies": {
"react-native": "^0.3.10",
"react-native-linear-gradient": "^0.1.6"
"react-native-linear-gradient": "^0.1.7"
}
}

View File

@ -1,11 +1,12 @@
var React = require('React');
var NativeModules = require('NativeModules');
/**
* @providesModule LinearGradient
* @flow
*/
'use strict';
var ReactIOSViewAttributes = require('ReactIOSViewAttributes');
var StyleSheet = require('StyleSheet');
var createReactIOSNativeComponentClass = require('createReactIOSNativeComponentClass');
var PropTypes = require('ReactPropTypes');
var NativeMethodsMixin = require('NativeMethodsMixin');
var flattenStyle = require('flattenStyle');
var merge = require('merge');
var deepDiffer = require('deepDiffer');