diff --git a/src/apis/Animated/index.js b/src/apis/Animated/index.js index 16e4cc09..4093fa38 100644 --- a/src/apis/Animated/index.js +++ b/src/apis/Animated/index.js @@ -1,3 +1,14 @@ +/** + * Copyright (c) 2016-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule Animated + * @noflow + */ + import Animated from 'animated'; import Image from '../../components/Image'; import ScrollView from '../../components/ScrollView'; diff --git a/src/apis/AppRegistry/AppContainer.js b/src/apis/AppRegistry/AppContainer.js index 4f62f3d1..8cd1c449 100644 --- a/src/apis/AppRegistry/AppContainer.js +++ b/src/apis/AppRegistry/AppContainer.js @@ -1,4 +1,11 @@ /** + * Copyright (c) 2016-present, Nicolas Gallagher. + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * * @flow */ diff --git a/src/apis/AppRegistry/index.js b/src/apis/AppRegistry/index.js index bc996817..24e09dc3 100644 --- a/src/apis/AppRegistry/index.js +++ b/src/apis/AppRegistry/index.js @@ -3,6 +3,10 @@ * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule AppRegistry * @flow */ diff --git a/src/apis/AppRegistry/renderApplication.js b/src/apis/AppRegistry/renderApplication.js index c1cc38ce..f4227dc7 100644 --- a/src/apis/AppRegistry/renderApplication.js +++ b/src/apis/AppRegistry/renderApplication.js @@ -3,6 +3,9 @@ * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * * @flow */ diff --git a/src/apis/AppState/index.js b/src/apis/AppState/index.js index 942b9f8d..6c830c98 100644 --- a/src/apis/AppState/index.js +++ b/src/apis/AppState/index.js @@ -1,4 +1,12 @@ /** + * Copyright (c) 2016-present, Nicolas Gallagher. + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule AppRegistry * @flow */ diff --git a/src/apis/AsyncStorage/index.js b/src/apis/AsyncStorage/index.js index f604df3b..db1c81a8 100644 --- a/src/apis/AsyncStorage/index.js +++ b/src/apis/AsyncStorage/index.js @@ -3,8 +3,13 @@ * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule AppRegistry * @flow */ + import merge from 'deep-assign'; const mergeLocalStorageItem = (key, value) => { diff --git a/src/apis/BackAndroid/index.js b/src/apis/BackAndroid/index.js index e82b3045..6f161b10 100644 --- a/src/apis/BackAndroid/index.js +++ b/src/apis/BackAndroid/index.js @@ -1,13 +1,12 @@ /** + * Copyright (c) 2016-present, Nicolas Gallagher. * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * web stub for BackAndroid.android.js + * LICENSE file in the root directory of this source tree. * + * @providesModule BackHandler * @flow */ diff --git a/src/apis/Clipboard/index.js b/src/apis/Clipboard/index.js index 051e5dbd..cccde20a 100644 --- a/src/apis/Clipboard/index.js +++ b/src/apis/Clipboard/index.js @@ -1,5 +1,12 @@ -/* global window */ /** + * Copyright (c) 2016-present, Nicolas Gallagher. + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule Clipboard * @flow */ diff --git a/src/apis/Dimensions/index.js b/src/apis/Dimensions/index.js index 5a68f3be..b0f6ae35 100644 --- a/src/apis/Dimensions/index.js +++ b/src/apis/Dimensions/index.js @@ -3,6 +3,10 @@ * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule Dimensions * @flow */ diff --git a/src/apis/I18nManager/index.js b/src/apis/I18nManager/index.js index 6bfeeb7e..26888aba 100644 --- a/src/apis/I18nManager/index.js +++ b/src/apis/I18nManager/index.js @@ -1,4 +1,12 @@ /** + * Copyright (c) 2016-present, Nicolas Gallagher. + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule I18nManager * @flow */ diff --git a/src/apis/InteractionManager/index.js b/src/apis/InteractionManager/index.js index 3160b027..6367f24e 100644 --- a/src/apis/InteractionManager/index.js +++ b/src/apis/InteractionManager/index.js @@ -1,7 +1,12 @@ /** + * Copyright (c) 2016-present, Nicolas Gallagher. * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule InteractionManager * @flow */ diff --git a/src/apis/Linking/index.js b/src/apis/Linking/index.js index b9dc446e..42e4d89f 100644 --- a/src/apis/Linking/index.js +++ b/src/apis/Linking/index.js @@ -1,4 +1,12 @@ /** + * Copyright (c) 2016-present, Nicolas Gallagher. + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule Linking * @flow */ diff --git a/src/apis/NetInfo/index.js b/src/apis/NetInfo/index.js index 3ef386e8..6f73f457 100644 --- a/src/apis/NetInfo/index.js +++ b/src/apis/NetInfo/index.js @@ -3,6 +3,10 @@ * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule NetInfo * @flow */ diff --git a/src/apis/PanResponder/index.js b/src/apis/PanResponder/index.js index 9a066877..e893ac86 100644 --- a/src/apis/PanResponder/index.js +++ b/src/apis/PanResponder/index.js @@ -1,7 +1,13 @@ -/* eslint-disable */ /** + * Copyright (c) 2016-present, Nicolas Gallagher. * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule PanResponder + * @noflow */ import TouchHistoryMath from '../../vendor/TouchHistoryMath'; diff --git a/src/apis/PixelRatio/index.js b/src/apis/PixelRatio/index.js index cc73dc0d..8ca51967 100644 --- a/src/apis/PixelRatio/index.js +++ b/src/apis/PixelRatio/index.js @@ -3,6 +3,10 @@ * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule PixelRatio * @flow */ diff --git a/src/apis/Platform/index.js b/src/apis/Platform/index.js index 5973c995..fdc99f5a 100644 --- a/src/apis/Platform/index.js +++ b/src/apis/Platform/index.js @@ -1,4 +1,12 @@ /** + * Copyright (c) 2016-present, Nicolas Gallagher. + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule Platform * @flow */ diff --git a/src/apis/StyleSheet/StyleManager.js b/src/apis/StyleSheet/StyleManager.js index 6de35d92..33bdeba4 100644 --- a/src/apis/StyleSheet/StyleManager.js +++ b/src/apis/StyleSheet/StyleManager.js @@ -1,3 +1,13 @@ +/** + * Copyright (c) 2016-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @noflow + */ + import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; import generateCss from './generateCss'; import hash from '../../vendor/hash'; diff --git a/src/apis/StyleSheet/StyleRegistry.js b/src/apis/StyleSheet/StyleRegistry.js index 938fbec3..3a3721e5 100644 --- a/src/apis/StyleSheet/StyleRegistry.js +++ b/src/apis/StyleSheet/StyleRegistry.js @@ -1,7 +1,16 @@ /** + * Copyright (c) 2016-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * * WARNING: changes to this file in particular can cause significant changes to * the results of render performance benchmarks. + * + * @noflow */ + import createReactDOMStyle from './createReactDOMStyle'; import flattenArray from '../../modules/flattenArray'; import flattenStyle from './flattenStyle'; diff --git a/src/apis/StyleSheet/StyleSheetValidation.js b/src/apis/StyleSheet/StyleSheetValidation.js index 103ab6dd..1e29d7b8 100644 --- a/src/apis/StyleSheet/StyleSheetValidation.js +++ b/src/apis/StyleSheet/StyleSheetValidation.js @@ -1,10 +1,10 @@ /** + * Copyright (c) 2016-present, Nicolas Gallagher. * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * LICENSE file in the root directory of this source tree. * * @providesModule StyleSheetValidation * @flow diff --git a/src/apis/StyleSheet/createReactDOMStyle.js b/src/apis/StyleSheet/createReactDOMStyle.js index bc02dbd0..7e1ed86f 100644 --- a/src/apis/StyleSheet/createReactDOMStyle.js +++ b/src/apis/StyleSheet/createReactDOMStyle.js @@ -1,12 +1,20 @@ /** + * Copyright (c) 2016-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * * The browser implements the CSS cascade, where the order of properties is a - * factor in determining which styles to paint. React Native is different in - * giving precedence to the more specific styles. For example, the value of - * `paddingTop` takes precedence over that of `padding`. + * factor in determining which styles to paint. React Native is different. It + * gives giving precedence to the more specific style property. For example, + * the value of `paddingTop` takes precedence over that of `padding`. * * This module creates mutally exclusive style declarations by expanding all of * React Native's supported shortform properties (e.g. `padding`) to their * longfrom equivalents. + * + * @noflow */ import normalizeValue from './normalizeValue'; diff --git a/src/apis/StyleSheet/flattenStyle.js b/src/apis/StyleSheet/flattenStyle.js index daca1a57..d8caa9d7 100644 --- a/src/apis/StyleSheet/flattenStyle.js +++ b/src/apis/StyleSheet/flattenStyle.js @@ -1,14 +1,15 @@ /** + * Copyright (c) 2015-present, Nicolas Gallagher. * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * LICENSE file in the root directory of this source tree. * * @providesModule flattenStyle * @flow */ + import ReactNativePropRegistry from '../../modules/ReactNativePropRegistry'; import invariant from 'fbjs/lib/invariant'; diff --git a/src/apis/StyleSheet/generateCss.js b/src/apis/StyleSheet/generateCss.js index 3e5c543e..c336c4b5 100644 --- a/src/apis/StyleSheet/generateCss.js +++ b/src/apis/StyleSheet/generateCss.js @@ -1,3 +1,13 @@ +/** + * Copyright (c) 2016-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @noflow + */ + import hyphenateStyleName from 'hyphenate-style-name'; import mapKeyValue from '../../modules/mapKeyValue'; import normalizeValue from './normalizeValue'; diff --git a/src/apis/StyleSheet/i18nStyle.js b/src/apis/StyleSheet/i18nStyle.js index ee5e01cf..e7e5df45 100644 --- a/src/apis/StyleSheet/i18nStyle.js +++ b/src/apis/StyleSheet/i18nStyle.js @@ -1,3 +1,13 @@ +/** + * Copyright (c) 2016-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @noflow + */ + import I18nManager from '../I18nManager'; import multiplyStyleLengthValue from '../../modules/multiplyStyleLengthValue'; diff --git a/src/apis/StyleSheet/index.js b/src/apis/StyleSheet/index.js index bacaf6a0..f2366391 100644 --- a/src/apis/StyleSheet/index.js +++ b/src/apis/StyleSheet/index.js @@ -1,3 +1,14 @@ +/** + * Copyright (c) 2016-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule StyleSheet + * @noflow + */ + import flattenStyle from './flattenStyle'; import StyleRegistry from './registry'; diff --git a/src/apis/StyleSheet/registry.js b/src/apis/StyleSheet/registry.js index 57fbb57a..c09a3c16 100644 --- a/src/apis/StyleSheet/registry.js +++ b/src/apis/StyleSheet/registry.js @@ -1,3 +1,13 @@ +/** + * Copyright (c) 2016-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @flow + */ + import StyleRegistry from './StyleRegistry'; const registry = new StyleRegistry(); export default registry; diff --git a/src/apis/StyleSheet/staticCss.js b/src/apis/StyleSheet/staticCss.js index a22d9793..ba624078 100644 --- a/src/apis/StyleSheet/staticCss.js +++ b/src/apis/StyleSheet/staticCss.js @@ -1,3 +1,13 @@ +/** + * Copyright (c) 2016-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @flow + */ + export default 'html{' + // css reset 'font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;' + '-webkit-tap-highlight-color:rgba(0,0,0,0);' + diff --git a/src/apis/UIManager/index.js b/src/apis/UIManager/index.js index 02b73e57..5264190c 100644 --- a/src/apis/UIManager/index.js +++ b/src/apis/UIManager/index.js @@ -1,3 +1,14 @@ +/** + * Copyright (c) 2016-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule UIManager + * @noflow + */ + import requestAnimationFrame from 'fbjs/lib/requestAnimationFrame'; import setImmediate from 'fbjs/lib/setImmediate'; import setValueForStyles from '../../vendor/setValueForStyles'; diff --git a/src/apis/Vibration/index.js b/src/apis/Vibration/index.js index 93de95f9..2504cb4e 100644 --- a/src/apis/Vibration/index.js +++ b/src/apis/Vibration/index.js @@ -1,4 +1,12 @@ /** + * Copyright (c) 2016-present, Nicolas Gallagher. + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule Vibration * @flow */ diff --git a/src/components/ActivityIndicator/index.js b/src/components/ActivityIndicator/index.js index 6d5935c7..e95aecd9 100644 --- a/src/components/ActivityIndicator/index.js +++ b/src/components/ActivityIndicator/index.js @@ -1,4 +1,12 @@ /** + * Copyright (c) 2016-present, Nicolas Gallagher. + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule ActivityIndicator * @flow */ diff --git a/src/components/Button/index.js b/src/components/Button/index.js index 13d4aca7..bbd6c8f8 100644 --- a/src/components/Button/index.js +++ b/src/components/Button/index.js @@ -1,4 +1,12 @@ /** + * Copyright (c) 2016-present, Nicolas Gallagher. + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule Button * @flow */ diff --git a/src/components/Image/index.js b/src/components/Image/index.js index 5fba4d89..d6d29cfa 100644 --- a/src/components/Image/index.js +++ b/src/components/Image/index.js @@ -1,5 +1,12 @@ -/* global window */ /** + * Copyright (c) 2016-present, Nicolas Gallagher. + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule Image * @flow */ diff --git a/src/components/ProgressBar/index.js b/src/components/ProgressBar/index.js index 575edeec..f7bfb4ab 100644 --- a/src/components/ProgressBar/index.js +++ b/src/components/ProgressBar/index.js @@ -1,4 +1,11 @@ /** + * Copyright (c) 2016-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule ProgressBar * @flow */ diff --git a/src/components/ScrollView/ScrollViewBase.js b/src/components/ScrollView/ScrollViewBase.js index 208d4f44..2f708054 100644 --- a/src/components/ScrollView/ScrollViewBase.js +++ b/src/components/ScrollView/ScrollViewBase.js @@ -1,8 +1,10 @@ /** * Copyright (c) 2016-present, Nicolas Gallagher. - * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * * @flow */ diff --git a/src/components/ScrollView/index.js b/src/components/ScrollView/index.js index 4353ba34..398a83a0 100644 --- a/src/components/ScrollView/index.js +++ b/src/components/ScrollView/index.js @@ -3,7 +3,11 @@ * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * - * @flow + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule ScrollView + * @noflow */ import createReactClass from 'create-react-class'; diff --git a/src/components/StaticContainer/index.js b/src/components/StaticContainer/index.js index edeaf44b..b1301563 100644 --- a/src/components/StaticContainer/index.js +++ b/src/components/StaticContainer/index.js @@ -3,6 +3,10 @@ * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule StaticContainer * @flow */ diff --git a/src/components/StaticRenderer/index.js b/src/components/StaticRenderer/index.js index 51c0a1d1..0dcd719f 100644 --- a/src/components/StaticRenderer/index.js +++ b/src/components/StaticRenderer/index.js @@ -3,6 +3,10 @@ * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule StaticRenderer * @flow */ diff --git a/src/components/StatusBar/index.js b/src/components/StatusBar/index.js index 828f549d..1d1b92e2 100644 --- a/src/components/StatusBar/index.js +++ b/src/components/StatusBar/index.js @@ -1,4 +1,11 @@ /** + * Copyright (c) 2016-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule StatusBar * @flow */ diff --git a/src/components/Switch/index.js b/src/components/Switch/index.js index 6fec34f8..aa9fc3b2 100644 --- a/src/components/Switch/index.js +++ b/src/components/Switch/index.js @@ -1,4 +1,5 @@ /** + * @providesModule Switch * @flow */ diff --git a/src/components/Text/TextPropTypes.js b/src/components/Text/TextPropTypes.js index 770c1b02..8ee9f075 100644 --- a/src/components/Text/TextPropTypes.js +++ b/src/components/Text/TextPropTypes.js @@ -1,4 +1,12 @@ /** + * Copyright (c) 2015-present, Nicolas Gallagher. + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule TextPropTypes * @flow */ diff --git a/src/components/Text/TextStylePropTypes.js b/src/components/Text/TextStylePropTypes.js index 389b71b8..057c6dbe 100644 --- a/src/components/Text/TextStylePropTypes.js +++ b/src/components/Text/TextStylePropTypes.js @@ -1,4 +1,11 @@ /** + * Copyright (c) 2015-present, Nicolas Gallagher. + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * * @flow */ diff --git a/src/components/Text/index.js b/src/components/Text/index.js index 54adfc8c..1010b7be 100644 --- a/src/components/Text/index.js +++ b/src/components/Text/index.js @@ -1,4 +1,12 @@ /** + * Copyright (c) 2015-present, Nicolas Gallagher. + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule Text * @flow */ diff --git a/src/components/TextInput/TextInputState.js b/src/components/TextInput/TextInputState.js index 0f5eaee9..f75cbb02 100644 --- a/src/components/TextInput/TextInputState.js +++ b/src/components/TextInput/TextInputState.js @@ -1,8 +1,12 @@ /** - * Copyright (c) 2016-present, Nicolas Gallagher. + * Copyright (c) 2015-present, Nicolas Gallagher. * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule TextInputState * @flow */ diff --git a/src/components/TextInput/TextInputStylePropTypes.js b/src/components/TextInput/TextInputStylePropTypes.js index d8ab8ebb..b32b7fcf 100644 --- a/src/components/TextInput/TextInputStylePropTypes.js +++ b/src/components/TextInput/TextInputStylePropTypes.js @@ -1,4 +1,10 @@ /** + * Copyright (c) 2015-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * * @flow */ diff --git a/src/components/TextInput/index.js b/src/components/TextInput/index.js index c80b58d9..dcd4c469 100644 --- a/src/components/TextInput/index.js +++ b/src/components/TextInput/index.js @@ -1,4 +1,12 @@ /** + * Copyright (c) 2015-present, Nicolas Gallagher. + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule TextInput * @flow */ diff --git a/src/components/Touchable/BoundingDimensions.js b/src/components/Touchable/BoundingDimensions.js index d17c1270..f7547b0a 100644 --- a/src/components/Touchable/BoundingDimensions.js +++ b/src/components/Touchable/BoundingDimensions.js @@ -25,10 +25,6 @@ BoundingDimensions.prototype.destructor = function() { this.height = null; }; -/** - * @param {HTMLElement} element Element to return `BoundingDimensions` for. - * @return {BoundingDimensions} Bounding dimensions of `element`. - */ BoundingDimensions.getPooledFromElement = function(element) { return BoundingDimensions.getPooled(element.offsetWidth, element.offsetHeight); }; diff --git a/src/components/Touchable/Position.js b/src/components/Touchable/Position.js index 2934861e..209afdae 100644 --- a/src/components/Touchable/Position.js +++ b/src/components/Touchable/Position.js @@ -1,22 +1,17 @@ -/* eslint-disable */ - /** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @noflow */ import PooledClass from '../../vendor/PooledClass'; const twoArgumentPooler = PooledClass.twoArgumentPooler; -/** - * Position does not expose methods for construction via an `HTMLDOMElement`, - * because it isn't meaningful to construct such a thing without first defining - * a frame of reference. - * - * @param {number} windowStartKey Key that window starts at. - * @param {number} windowEndKey Key that window ends at. - */ function Position(left, top) { this.left = left; this.top = top; diff --git a/src/components/Touchable/Touchable.js b/src/components/Touchable/Touchable.js index c4430e12..e1ccc95c 100644 --- a/src/components/Touchable/Touchable.js +++ b/src/components/Touchable/Touchable.js @@ -1,13 +1,15 @@ /* eslint-disable */ + /** + * Copyright (c) 2016-present, Nicolas Gallagher. * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * LICENSE file in the root directory of this source tree. * * @providesModule Touchable + * @noflow */ /* @edit start */ diff --git a/src/components/Touchable/TouchableHighlight.js b/src/components/Touchable/TouchableHighlight.js index a0923919..e3f02401 100644 --- a/src/components/Touchable/TouchableHighlight.js +++ b/src/components/Touchable/TouchableHighlight.js @@ -1,11 +1,12 @@ /* eslint-disable */ + /** + * Copyright (c) 2016-present, Nicolas Gallagher. * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * LICENSE file in the root directory of this source tree. * * @providesModule TouchableHighlight * @noflow diff --git a/src/components/Touchable/TouchableOpacity.js b/src/components/Touchable/TouchableOpacity.js index 33d9da3d..82f33a02 100644 --- a/src/components/Touchable/TouchableOpacity.js +++ b/src/components/Touchable/TouchableOpacity.js @@ -1,11 +1,12 @@ /* eslint-disable */ + /** + * Copyright (c) 2016-present, Nicolas Gallagher. * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * LICENSE file in the root directory of this source tree. * * @providesModule TouchableOpacity * @noflow diff --git a/src/components/Touchable/TouchableWithoutFeedback.js b/src/components/Touchable/TouchableWithoutFeedback.js index 178e0b28..b3ecc30a 100644 --- a/src/components/Touchable/TouchableWithoutFeedback.js +++ b/src/components/Touchable/TouchableWithoutFeedback.js @@ -1,15 +1,15 @@ /* eslint-disable */ /** + * Copyright (c) 2016-present, Nicolas Gallagher. * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * LICENSE file in the root directory of this source tree. * * @providesModule TouchableWithoutFeedback - * @flow + * @noflow */ import createReactClass from 'create-react-class'; diff --git a/src/components/Touchable/ensureComponentIsNative.js b/src/components/Touchable/ensureComponentIsNative.js index b39f8b46..a3599616 100644 --- a/src/components/Touchable/ensureComponentIsNative.js +++ b/src/components/Touchable/ensureComponentIsNative.js @@ -1,11 +1,9 @@ -/* eslint-disable */ /** - * Copyright (c) 2015-present, Facebook, Inc. + * Copyright (c) 2015-present, Nicolas Gallagher. * All rights reserved. * * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * LICENSE file in the root directory of this source tree. * * @providesModule ensureComponentIsNative * @flow diff --git a/src/components/Touchable/ensurePositiveDelayProps.js b/src/components/Touchable/ensurePositiveDelayProps.js index 302fdbc1..f5a32a16 100644 --- a/src/components/Touchable/ensurePositiveDelayProps.js +++ b/src/components/Touchable/ensurePositiveDelayProps.js @@ -1,11 +1,9 @@ -/* eslint-disable */ /** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * LICENSE file in the root directory of this source tree. * * @providesModule ensurePositiveDelayProps * @flow diff --git a/src/components/View/ViewPropTypes.js b/src/components/View/ViewPropTypes.js index 7dc033ef..4faadd99 100644 --- a/src/components/View/ViewPropTypes.js +++ b/src/components/View/ViewPropTypes.js @@ -1,4 +1,12 @@ /** + * Copyright (c) 2015-present, Nicolas Gallagher. + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule ViewPropTypes * @flow */ diff --git a/src/components/View/ViewStylePropTypes.js b/src/components/View/ViewStylePropTypes.js index fd8d069a..c0803f13 100644 --- a/src/components/View/ViewStylePropTypes.js +++ b/src/components/View/ViewStylePropTypes.js @@ -1,4 +1,11 @@ /** + * Copyright (c) 2015-present, Nicolas Gallagher. + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * * @flow */ diff --git a/src/components/View/index.js b/src/components/View/index.js index 02aa0720..5b83c050 100644 --- a/src/components/View/index.js +++ b/src/components/View/index.js @@ -1,4 +1,9 @@ /** + * Copyright (c) 2015-present, Nicolas Gallagher. + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * @providesModule View * @flow */ diff --git a/src/modules/AccessibilityUtil/index.js b/src/modules/AccessibilityUtil/index.js index bddba701..8b4f095d 100644 --- a/src/modules/AccessibilityUtil/index.js +++ b/src/modules/AccessibilityUtil/index.js @@ -1,3 +1,13 @@ +/** + * Copyright (c) 2017-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @flow + */ + import propsToAccessibilityComponent from './propsToAccessibilityComponent'; import propsToAriaRole from './propsToAriaRole'; import propsToTabIndex from './propsToTabIndex'; diff --git a/src/modules/AccessibilityUtil/propsToAccessibilityComponent.js b/src/modules/AccessibilityUtil/propsToAccessibilityComponent.js index 69511eeb..b94dc3d6 100644 --- a/src/modules/AccessibilityUtil/propsToAccessibilityComponent.js +++ b/src/modules/AccessibilityUtil/propsToAccessibilityComponent.js @@ -1,3 +1,13 @@ +/** + * Copyright (c) 2017-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @noflow + */ + import propsToAriaRole from './propsToAriaRole'; const roleComponents = { diff --git a/src/modules/AccessibilityUtil/propsToAriaRole.js b/src/modules/AccessibilityUtil/propsToAriaRole.js index 052a44d9..b05e49ec 100644 --- a/src/modules/AccessibilityUtil/propsToAriaRole.js +++ b/src/modules/AccessibilityUtil/propsToAriaRole.js @@ -1,3 +1,13 @@ +/** + * Copyright (c) 2017-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @noflow + */ + const accessibilityComponentTypeToRole = { button: 'button', none: 'presentation' diff --git a/src/modules/AccessibilityUtil/propsToTabIndex.js b/src/modules/AccessibilityUtil/propsToTabIndex.js index 36b35548..a3369890 100644 --- a/src/modules/AccessibilityUtil/propsToTabIndex.js +++ b/src/modules/AccessibilityUtil/propsToTabIndex.js @@ -1,3 +1,13 @@ +/** + * Copyright (c) 2017-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @noflow + */ + import propsToAriaRole from './propsToAriaRole'; const propsToTabIndex = props => { diff --git a/src/modules/ImageLoader/index.js b/src/modules/ImageLoader/index.js index a92c0a10..e8f1676e 100644 --- a/src/modules/ImageLoader/index.js +++ b/src/modules/ImageLoader/index.js @@ -1,3 +1,13 @@ +/** + * Copyright (c) 2016-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @noflow + */ + let id = 0; const requests = {}; diff --git a/src/modules/NativeMethodsMixin/index.js b/src/modules/NativeMethodsMixin/index.js index 6092a056..b5e41f79 100644 --- a/src/modules/NativeMethodsMixin/index.js +++ b/src/modules/NativeMethodsMixin/index.js @@ -1,8 +1,12 @@ /** - * Copyright (c) 2015-present, Nicolas Gallagher. + * Copyright (c) 2016-present, Nicolas Gallagher. * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule NativeMethodsMixin * @flow */ diff --git a/src/modules/ReactNativePropRegistry/index.js b/src/modules/ReactNativePropRegistry/index.js index 1cb64fac..8f1b049e 100644 --- a/src/modules/ReactNativePropRegistry/index.js +++ b/src/modules/ReactNativePropRegistry/index.js @@ -1,11 +1,9 @@ -/* eslint-disable */ /** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * LICENSE file in the root directory of this source tree. * * @providesModule ReactNativePropRegistry * @flow diff --git a/src/modules/ScrollResponder/index.js b/src/modules/ScrollResponder/index.js index e51786a7..fbb53c23 100644 --- a/src/modules/ScrollResponder/index.js +++ b/src/modules/ScrollResponder/index.js @@ -1,11 +1,10 @@ -/* eslint-disable */ /** + * Copyright (c) 2016-present, Nicolas Gallagher. * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * LICENSE file in the root directory of this source tree. * * @providesModule ScrollResponder * @flow diff --git a/src/modules/applyLayout/index.js b/src/modules/applyLayout/index.js index c78b2fd9..110d9850 100644 --- a/src/modules/applyLayout/index.js +++ b/src/modules/applyLayout/index.js @@ -1,7 +1,10 @@ /** - * Copyright (c) 2016-present, Nicolas Gallagher. + * Copyright (c) 2015-present, Nicolas Gallagher. * All rights reserved. * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * * @flow */ diff --git a/src/modules/applyNativeMethods/index.js b/src/modules/applyNativeMethods/index.js index 24764cf7..c809da76 100644 --- a/src/modules/applyNativeMethods/index.js +++ b/src/modules/applyNativeMethods/index.js @@ -2,6 +2,9 @@ * Copyright (c) 2015-present, Nicolas Gallagher. * All rights reserved. * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * * @flow */ diff --git a/src/modules/createDOMElement/index.js b/src/modules/createDOMElement/index.js index 5f23f15d..3de6c666 100644 --- a/src/modules/createDOMElement/index.js +++ b/src/modules/createDOMElement/index.js @@ -1,3 +1,13 @@ +/** + * Copyright (c) 2015-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @noflow + */ + import '../injectResponderEventPlugin'; import AccessibilityUtil from '../AccessibilityUtil'; diff --git a/src/modules/createDOMProps/index.js b/src/modules/createDOMProps/index.js index db6058a9..8db5041c 100644 --- a/src/modules/createDOMProps/index.js +++ b/src/modules/createDOMProps/index.js @@ -1,3 +1,13 @@ +/** + * Copyright (c) 2015-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @noflow + */ + import AccessibilityUtil from '../AccessibilityUtil'; import StyleSheet from '../../apis/StyleSheet'; import StyleRegistry from '../../apis/StyleSheet/registry'; diff --git a/src/modules/dismissKeyboard/index.js b/src/modules/dismissKeyboard/index.js index c34e58f5..0faed4d2 100644 --- a/src/modules/dismissKeyboard/index.js +++ b/src/modules/dismissKeyboard/index.js @@ -1,3 +1,14 @@ +/** + * Copyright (c) 2016-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule dismissKeyboard + * @flow + */ + import TextInputState from '../../components/TextInput/TextInputState'; const dismissKeyboard = () => { diff --git a/src/modules/findNodeHandle/index.js b/src/modules/findNodeHandle/index.js index 2968f86b..9c8c263a 100644 --- a/src/modules/findNodeHandle/index.js +++ b/src/modules/findNodeHandle/index.js @@ -1,2 +1,13 @@ +/** + * Copyright (c) 2016-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule findNodeHandle + * @noflow + */ + import { findDOMNode } from 'react-dom'; export default findDOMNode; diff --git a/src/modules/modality/index.js b/src/modules/modality/index.js index c30eae50..1f0922fd 100644 --- a/src/modules/modality/index.js +++ b/src/modules/modality/index.js @@ -1,7 +1,3 @@ -/* global document, window */ - -import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; - /** * Adapts focus styles based on the user's active input modality (i.e., how * they are interacting with the UI right now). @@ -16,7 +12,12 @@ import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; * 2. a focus event happened on an element which requires keyboard interaction (e.g., a text field); * * Based on https://github.com/WICG/focus-ring + * + * @noflow */ + +import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; + const modality = () => { if (!canUseDOM) { return; diff --git a/src/modules/multiplyStyleLengthValue/index.js b/src/modules/multiplyStyleLengthValue/index.js index 94fe7bbf..8ac32208 100644 --- a/src/modules/multiplyStyleLengthValue/index.js +++ b/src/modules/multiplyStyleLengthValue/index.js @@ -1,3 +1,13 @@ +/** + * Copyright (c) 2015-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @noflow + */ + const CSS_UNIT_RE = /^[+-]?\d*(?:\.\d+)?(?:[Ee][+-]?\d+)?(%|\w*)/; const getUnit = str => str.match(CSS_UNIT_RE)[1]; diff --git a/src/modules/normalizeNativeEvent.js b/src/modules/normalizeNativeEvent.js index a72ba503..4ffda873 100644 --- a/src/modules/normalizeNativeEvent.js +++ b/src/modules/normalizeNativeEvent.js @@ -1,3 +1,13 @@ +/** + * Copyright (c) 2015-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @noflow + */ + const emptyArray = []; // Mobile Safari re-uses touch objects, so we copy the properties we want and normalize the identifier diff --git a/src/modules/prefixStyles/index.js b/src/modules/prefixStyles/index.js index a5ab2ba8..36f5bb4b 100644 --- a/src/modules/prefixStyles/index.js +++ b/src/modules/prefixStyles/index.js @@ -1,8 +1,18 @@ +/** + * Copyright (c) 2015-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @flow + */ + import prefixAll from 'inline-style-prefixer/static'; export default prefixAll; -export const prefixInlineStyles = style => { +export const prefixInlineStyles = (style: Object) => { const prefixedStyles = prefixAll(style); // React@15 removed undocumented support for fallback values in diff --git a/src/modules/requestIdleCallback/index.js b/src/modules/requestIdleCallback/index.js index 27956761..168b89e7 100644 --- a/src/modules/requestIdleCallback/index.js +++ b/src/modules/requestIdleCallback/index.js @@ -1,7 +1,16 @@ -/* global window */ +/** + * Copyright (c) 2015-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @flow + */ + import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; -const _requestIdleCallback = function(cb) { +const _requestIdleCallback = function(cb: Function) { return setTimeout(() => { const start = Date.now(); cb({ diff --git a/src/modules/unitlessNumbers/index.js b/src/modules/unitlessNumbers/index.js index 48817839..ae35bcd7 100644 --- a/src/modules/unitlessNumbers/index.js +++ b/src/modules/unitlessNumbers/index.js @@ -1,3 +1,7 @@ +/** + * @flow + */ + const unitlessNumbers = { animationIterationCount: true, borderImageOutset: true, diff --git a/src/propTypes/AnimationPropTypes.js b/src/propTypes/AnimationPropTypes.js index 9a2800a2..2925be66 100644 --- a/src/propTypes/AnimationPropTypes.js +++ b/src/propTypes/AnimationPropTypes.js @@ -1,3 +1,13 @@ +/** + * Copyright (c) 2017-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @flow + */ + import { number, oneOf, oneOfType, string } from 'prop-types'; const AnimationPropTypes = { diff --git a/src/propTypes/BaseComponentPropTypes.js b/src/propTypes/BaseComponentPropTypes.js index 2bd96d26..7c1ca01d 100644 --- a/src/propTypes/BaseComponentPropTypes.js +++ b/src/propTypes/BaseComponentPropTypes.js @@ -1,3 +1,13 @@ +/** + * Copyright (c) 2015-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @flow + */ + import { array, bool, number, object, oneOf, oneOfType, string } from 'prop-types'; const BaseComponentPropTypes = { diff --git a/src/propTypes/BorderPropTypes.js b/src/propTypes/BorderPropTypes.js index 2b22f438..a7d7c247 100644 --- a/src/propTypes/BorderPropTypes.js +++ b/src/propTypes/BorderPropTypes.js @@ -1,3 +1,13 @@ +/** + * Copyright (c) 2015-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @flow + */ + import ColorPropType from './ColorPropType'; import { number, oneOf, oneOfType, string } from 'prop-types'; diff --git a/src/propTypes/EdgeInsetsPropType.js b/src/propTypes/EdgeInsetsPropType.js index 238fed97..3598e473 100644 --- a/src/propTypes/EdgeInsetsPropType.js +++ b/src/propTypes/EdgeInsetsPropType.js @@ -1,4 +1,3 @@ -/* eslint-disable */ /** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. diff --git a/src/propTypes/LayoutPropTypes.js b/src/propTypes/LayoutPropTypes.js index a8aea9f3..376d9b80 100644 --- a/src/propTypes/LayoutPropTypes.js +++ b/src/propTypes/LayoutPropTypes.js @@ -1,3 +1,13 @@ +/** + * Copyright (c) 2015-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @flow + */ + import { number, oneOf, oneOfType, string } from 'prop-types'; const OverflowPropType = oneOf(['auto', 'hidden', 'scroll', 'visible']); const hiddenOrVisible = oneOf(['hidden', 'visible']); diff --git a/src/propTypes/PointPropType.js b/src/propTypes/PointPropType.js index 4982ca28..ae1814f3 100644 --- a/src/propTypes/PointPropType.js +++ b/src/propTypes/PointPropType.js @@ -1,5 +1,3 @@ -/* eslint-disable */ - /** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. diff --git a/src/propTypes/ShadowPropTypes.js b/src/propTypes/ShadowPropTypes.js index 75d8b0d3..39070f5c 100644 --- a/src/propTypes/ShadowPropTypes.js +++ b/src/propTypes/ShadowPropTypes.js @@ -1,3 +1,13 @@ +/** + * Copyright (c) 2016-present, Nicolas Gallagher. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @flow + */ + import ColorPropType from './ColorPropType'; import { number, oneOfType, shape, string } from 'prop-types'; const numberOrString = oneOfType([number, string]); diff --git a/src/propTypes/StyleSheetPropType.js b/src/propTypes/StyleSheetPropType.js index f2e26ed1..b29d49f8 100644 --- a/src/propTypes/StyleSheetPropType.js +++ b/src/propTypes/StyleSheetPropType.js @@ -2,6 +2,10 @@ * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule StyleSheetPropType * @flow */ diff --git a/src/propTypes/TransformPropTypes.js b/src/propTypes/TransformPropTypes.js index 667d3ee9..7734de97 100644 --- a/src/propTypes/TransformPropTypes.js +++ b/src/propTypes/TransformPropTypes.js @@ -2,6 +2,10 @@ * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + * + * @providesModule TransformPropTypes * @flow */ diff --git a/src/vendor/hash/index.js b/src/vendor/hash/index.js index 415edf5e..ca72a791 100644 --- a/src/vendor/hash/index.js +++ b/src/vendor/hash/index.js @@ -1,6 +1,6 @@ +/* eslint-disable */ + /** - * eslint-disable - * * JS Implementation of MurmurHash2 * * @author Gary Court