diff --git a/Examples/UIExplorer/js/AnimatedGratuitousApp/AnExBobble.js b/Examples/UIExplorer/js/AnimatedGratuitousApp/AnExBobble.js index 38452adec..062182edc 100644 --- a/Examples/UIExplorer/js/AnimatedGratuitousApp/AnExBobble.js +++ b/Examples/UIExplorer/js/AnimatedGratuitousApp/AnExBobble.js @@ -27,7 +27,6 @@ var React = require('react'); var ReactNative = require('react-native'); var { Animated, - Image, PanResponder, StyleSheet, View, diff --git a/Examples/UIExplorer/js/AnimatedGratuitousApp/AnExChained.js b/Examples/UIExplorer/js/AnimatedGratuitousApp/AnExChained.js index 2707620d8..0eba13082 100644 --- a/Examples/UIExplorer/js/AnimatedGratuitousApp/AnExChained.js +++ b/Examples/UIExplorer/js/AnimatedGratuitousApp/AnExChained.js @@ -27,7 +27,6 @@ var React = require('react'); var ReactNative = require('react-native'); var { Animated, - Image, PanResponder, StyleSheet, View, diff --git a/Examples/UIExplorer/js/AnimatedGratuitousApp/AnExTilt.js b/Examples/UIExplorer/js/AnimatedGratuitousApp/AnExTilt.js index 35c4e62f2..92199e913 100644 --- a/Examples/UIExplorer/js/AnimatedGratuitousApp/AnExTilt.js +++ b/Examples/UIExplorer/js/AnimatedGratuitousApp/AnExTilt.js @@ -27,10 +27,8 @@ var React = require('react'); var ReactNative = require('react-native'); var { Animated, - Image, PanResponder, StyleSheet, - View, } = ReactNative; class AnExTilt extends React.Component { diff --git a/Examples/UIExplorer/js/ImageEditingExample.js b/Examples/UIExplorer/js/ImageEditingExample.js index 32cda6829..481335183 100644 --- a/Examples/UIExplorer/js/ImageEditingExample.js +++ b/Examples/UIExplorer/js/ImageEditingExample.js @@ -28,13 +28,11 @@ var { CameraRoll, Image, ImageEditor, - NativeModules, Platform, ScrollView, StyleSheet, Text, TouchableHighlight, - UIManager, View, } = ReactNative; diff --git a/Examples/UIExplorer/js/PanResponderExample.js b/Examples/UIExplorer/js/PanResponderExample.js index 00c5ac319..b042b7f8e 100644 --- a/Examples/UIExplorer/js/PanResponderExample.js +++ b/Examples/UIExplorer/js/PanResponderExample.js @@ -28,7 +28,6 @@ var { PanResponder, StyleSheet, View, - processColor, } = ReactNative; var CIRCLE_SIZE = 80; diff --git a/Examples/UIExplorer/js/PickerExample.js b/Examples/UIExplorer/js/PickerExample.js index 34024d807..7c225f7e0 100644 --- a/Examples/UIExplorer/js/PickerExample.js +++ b/Examples/UIExplorer/js/PickerExample.js @@ -31,7 +31,6 @@ const UIExplorerPage = require('UIExplorerPage'); const { Picker, Text, - TouchableWithoutFeedback, } = ReactNative; const Item = Picker.Item; diff --git a/Examples/UIExplorer/js/PickerIOSExample.js b/Examples/UIExplorer/js/PickerIOSExample.js index 9e1b16670..ec2fe0ff9 100644 --- a/Examples/UIExplorer/js/PickerIOSExample.js +++ b/Examples/UIExplorer/js/PickerIOSExample.js @@ -122,8 +122,6 @@ class PickerStyleExample extends React.Component { }; render() { - var make = CAR_MAKES_AND_MODELS[this.state.carMake]; - var selectionString = make.name + ' ' + make.models[this.state.modelIndex]; return ( ; }, }]; - -var styles = StyleSheet.create({ - backgroundColorText: { - margin: 5, - marginBottom: 0, - backgroundColor: 'rgba(100, 100, 100, 0.3)' - }, -}); diff --git a/Examples/UIExplorer/js/TimerExample.js b/Examples/UIExplorer/js/TimerExample.js index bb037bcfc..989361316 100644 --- a/Examples/UIExplorer/js/TimerExample.js +++ b/Examples/UIExplorer/js/TimerExample.js @@ -249,18 +249,6 @@ exports.examples = [ }; render() { - if (this.state.showTimer) { - var timer = [ - , - this.refs.interval.clear() }> - Clear interval - - ]; - var toggleText = 'Unmount timer'; - } else { - var timer = null; - var toggleText = 'Mount new timer'; - } return ( {this.state.showTimer && this._renderTimer()} diff --git a/Examples/UIExplorer/js/TouchableExample.js b/Examples/UIExplorer/js/TouchableExample.js index 0de886573..44232ec31 100644 --- a/Examples/UIExplorer/js/TouchableExample.js +++ b/Examples/UIExplorer/js/TouchableExample.js @@ -25,13 +25,11 @@ var React = require('react'); var ReactNative = require('react-native'); var { - PixelRatio, Image, StyleSheet, Text, TouchableHighlight, TouchableOpacity, - UIManager, Platform, TouchableNativeFeedback, View, diff --git a/Examples/UIExplorer/js/UIExplorerExampleContainer.js b/Examples/UIExplorer/js/UIExplorerExampleContainer.js index 598a31dce..fdd0ea75a 100644 --- a/Examples/UIExplorer/js/UIExplorerExampleContainer.js +++ b/Examples/UIExplorer/js/UIExplorerExampleContainer.js @@ -29,8 +29,6 @@ const { const UIExplorerBlock = require('./UIExplorerBlock'); const UIExplorerPage = require('./UIExplorerPage'); -const invariant = require('fbjs/lib/invariant'); - class UIExplorerExampleContainer extends React.Component { renderExample(example, i) { // Filter platform-specific examples diff --git a/Examples/UIExplorer/js/URIActionMap.js b/Examples/UIExplorer/js/URIActionMap.js index 63051ea75..19a76b91f 100644 --- a/Examples/UIExplorer/js/URIActionMap.js +++ b/Examples/UIExplorer/js/URIActionMap.js @@ -22,7 +22,6 @@ */ 'use strict'; -const React = require('react'); const ReactNative = require('react-native'); const UIExplorerActions = require('./UIExplorerActions'); // $FlowFixMe : This is a platform-forked component, and flow seems to only run on iOS? diff --git a/Examples/UIExplorer/js/createExamplePage.js b/Examples/UIExplorer/js/createExamplePage.js index 4b04edd95..f7661a109 100644 --- a/Examples/UIExplorer/js/createExamplePage.js +++ b/Examples/UIExplorer/js/createExamplePage.js @@ -27,7 +27,7 @@ const React = require('react'); const UIExplorerExampleContainer = require('./UIExplorerExampleContainer'); -import type { Example, ExampleModule } from 'ExampleTypes'; +import type { ExampleModule } from 'ExampleTypes'; var createExamplePage = function(title: ?string, exampleModule: ExampleModule) : ReactClass { diff --git a/Libraries/Components/DatePickerAndroid/DatePickerAndroid.ios.js b/Libraries/Components/DatePickerAndroid/DatePickerAndroid.ios.js index 4a6d99423..afc8a19c2 100644 --- a/Libraries/Components/DatePickerAndroid/DatePickerAndroid.ios.js +++ b/Libraries/Components/DatePickerAndroid/DatePickerAndroid.ios.js @@ -11,8 +11,6 @@ */ 'use strict'; -var warning = require('fbjs/lib/warning'); - const DatePickerAndroid = { async open(options: Object): Promise { return Promise.reject({ diff --git a/Libraries/Components/MapView/MapView.js b/Libraries/Components/MapView/MapView.js index 6153628c4..cedd0fa8a 100644 --- a/Libraries/Components/MapView/MapView.js +++ b/Libraries/Components/MapView/MapView.js @@ -15,7 +15,6 @@ const ColorPropType = require('ColorPropType'); const EdgeInsetsPropType = require('EdgeInsetsPropType'); const Image = require('Image'); const NativeMethodsMixin = require('react/lib/NativeMethodsMixin'); -const Platform = require('Platform'); const React = require('React'); const StyleSheet = require('StyleSheet'); const View = require('View'); diff --git a/Libraries/Components/Picker/Picker.js b/Libraries/Components/Picker/Picker.js index 313f30b40..7e2ad2a9f 100644 --- a/Libraries/Components/Picker/Picker.js +++ b/Libraries/Components/Picker/Picker.js @@ -17,7 +17,6 @@ var PickerIOS = require('PickerIOS'); var PickerAndroid = require('PickerAndroid'); var Platform = require('Platform'); var React = require('React'); -var StyleSheet = require('StyleSheet'); var StyleSheetPropType = require('StyleSheetPropType'); var TextStylePropTypes = require('TextStylePropTypes'); var UnimplementedView = require('UnimplementedView'); diff --git a/Libraries/Components/TimePickerAndroid/TimePickerAndroid.ios.js b/Libraries/Components/TimePickerAndroid/TimePickerAndroid.ios.js index 0d7ceee4b..1214d231c 100644 --- a/Libraries/Components/TimePickerAndroid/TimePickerAndroid.ios.js +++ b/Libraries/Components/TimePickerAndroid/TimePickerAndroid.ios.js @@ -11,8 +11,6 @@ */ 'use strict'; -var warning = require('fbjs/lib/warning'); - const TimePickerAndroid = { async open(options: Object): Promise { return Promise.reject({ diff --git a/Libraries/Components/ToolbarAndroid/ToolbarAndroid.android.js b/Libraries/Components/ToolbarAndroid/ToolbarAndroid.android.js index 4f8a4eaeb..2ac2ec6d9 100644 --- a/Libraries/Components/ToolbarAndroid/ToolbarAndroid.android.js +++ b/Libraries/Components/ToolbarAndroid/ToolbarAndroid.android.js @@ -205,19 +205,6 @@ var ToolbarAndroid = React.createClass({ }, }); -var toolbarAttributes = { - ...ReactNativeViewAttributes.UIView, - actions: true, - logo: true, - navIcon: true, - overflowIcon: true, - rtl: true, - subtitle: true, - subtitleColor: true, - title: true, - titleColor: true, -}; - var NativeToolbar = requireNativeComponent('ToolbarAndroid', ToolbarAndroid, { nativeOnly: { nativeActions: true, diff --git a/Libraries/Components/WebView/WebView.android.js b/Libraries/Components/WebView/WebView.android.js index 3cc033a14..8bb6d8288 100644 --- a/Libraries/Components/WebView/WebView.android.js +++ b/Libraries/Components/WebView/WebView.android.js @@ -14,14 +14,12 @@ var EdgeInsetsPropType = require('EdgeInsetsPropType'); var ActivityIndicator = require('ActivityIndicator'); var React = require('React'); var ReactNative = require('ReactNative'); -var ReactNativeViewAttributes = require('ReactNativeViewAttributes'); var StyleSheet = require('StyleSheet'); var UIManager = require('UIManager'); var View = require('View'); var deprecatedPropType = require('deprecatedPropType'); var keyMirror = require('fbjs/lib/keyMirror'); -var merge = require('merge'); var requireNativeComponent = require('requireNativeComponent'); var resolveAssetSource = require('resolveAssetSource'); diff --git a/Libraries/CustomComponents/NavigationExperimental/NavigationCard.js b/Libraries/CustomComponents/NavigationExperimental/NavigationCard.js index 6b0fd7999..e2f42fed3 100644 --- a/Libraries/CustomComponents/NavigationExperimental/NavigationCard.js +++ b/Libraries/CustomComponents/NavigationExperimental/NavigationCard.js @@ -41,7 +41,6 @@ const NavigationPointerEventsContainer = require('NavigationPointerEventsContain const NavigationPropTypes = require('NavigationPropTypes'); const React = require('React'); const StyleSheet = require('StyleSheet'); -const View = require('View'); import type { NavigationPanPanHandlers, diff --git a/Libraries/Experimental/IncrementalExample.js b/Libraries/Experimental/IncrementalExample.js index fec399cb0..6cbe08696 100644 --- a/Libraries/Experimental/IncrementalExample.js +++ b/Libraries/Experimental/IncrementalExample.js @@ -32,15 +32,12 @@ const IncrementalGroup = require('IncrementalGroup'); const IncrementalPresenter = require('IncrementalPresenter'); const JSEventLoopWatchdog = require('JSEventLoopWatchdog'); -const StaticContainer = require('StaticContainer.react'); const performanceNow = require('fbjs/lib/performanceNow'); InteractionManager.setDeadline(1000); JSEventLoopWatchdog.install({thresholdMS: 200}); -const NUM_ITEMS = 20; - let totalWidgets = 0; class SlowWidget extends React.Component { diff --git a/Libraries/Inspector/InspectorPanel.js b/Libraries/Inspector/InspectorPanel.js index 9c00b1eba..b053a7f69 100644 --- a/Libraries/Inspector/InspectorPanel.js +++ b/Libraries/Inspector/InspectorPanel.js @@ -17,7 +17,6 @@ var Text = require('Text'); var View = require('View'); var ElementProperties = require('ElementProperties'); var PerformanceOverlay = require('PerformanceOverlay'); -var Touchable = require('Touchable'); var TouchableHighlight = require('TouchableHighlight'); var NetworkOverlay = require('NetworkOverlay'); diff --git a/Libraries/Text/Text.js b/Libraries/Text/Text.js index fa9a3bd95..5296ebd7e 100644 --- a/Libraries/Text/Text.js +++ b/Libraries/Text/Text.js @@ -21,7 +21,6 @@ const Touchable = require('Touchable'); const createReactNativeComponentClass = require('react/lib/createReactNativeComponentClass'); -const merge = require('merge'); const mergeFast = require('mergeFast'); const stylePropType = StyleSheetPropType(TextStylePropTypes);