-
Notifications
You must be signed in to change notification settings - Fork 24.7k
WIP: Remove Haste from Libraries/ and convert to relative requires #14196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,9 +11,9 @@ | |
*/ | ||
'use strict'; | ||
|
||
const AlertIOS = require('AlertIOS'); | ||
const NativeModules = require('NativeModules'); | ||
const Platform = require('Platform'); | ||
const AlertIOS = require('./AlertIOS'); | ||
const NativeModules = require('../BatchedBridge/NativeModules'); | ||
const Platform = require('../Utilities/Platform'); | ||
|
||
import type { AlertType, AlertButtonStyle } from 'AlertIOS'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just realized that I didn't modify the |
||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,10 +12,10 @@ | |
'use strict'; | ||
|
||
|
||
var AnimatedImplementation = require('AnimatedImplementation'); | ||
var Image = require('Image'); | ||
var Text = require('Text'); | ||
var View = require('View'); | ||
var AnimatedImplementation = require('./AnimatedImplementation'); | ||
var Image = require('../../Image/Image'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ../../Image/Image Required module not found |
||
var Text = require('../../Text/Text'); | ||
var View = require('../../Components/View/View'); | ||
|
||
let AnimatedScrollView; | ||
|
||
|
@@ -26,7 +26,7 @@ const Animated = { | |
get ScrollView() { | ||
// Make this lazy to avoid circular reference. | ||
if (!AnimatedScrollView) { | ||
AnimatedScrollView = AnimatedImplementation.createAnimatedComponent(require('ScrollView')); | ||
AnimatedScrollView = AnimatedImplementation.createAnimatedComponent(require('../../Components/ScrollView/ScrollView')); | ||
} | ||
return AnimatedScrollView; | ||
}, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,16 +12,16 @@ | |
*/ | ||
'use strict'; | ||
|
||
var InteractionManager = require('InteractionManager'); | ||
var Interpolation = require('Interpolation'); | ||
var NativeAnimatedHelper = require('NativeAnimatedHelper'); | ||
var React = require('React'); | ||
var ReactNative = require('ReactNative'); | ||
var Set = require('Set'); | ||
var SpringConfig = require('SpringConfig'); | ||
var ViewStylePropTypes = require('ViewStylePropTypes'); | ||
|
||
var flattenStyle = require('flattenStyle'); | ||
var InteractionManager = require('../../Interaction/InteractionManager'); | ||
var Interpolation = require('./Interpolation'); | ||
var NativeAnimatedHelper = require('./NativeAnimatedHelper'); | ||
var React = require('../../react-native/React'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ../../react-native/React Required module not found |
||
var ReactNative = require('../../Renderer/src/renderers/native/ReactNative'); | ||
var Set = require('../../vendor/core/Set'); | ||
var SpringConfig = require('./SpringConfig'); | ||
var ViewStylePropTypes = require('../../Components/View/ViewStylePropTypes'); | ||
|
||
var flattenStyle = require('../../StyleSheet/flattenStyle'); | ||
var invariant = require('fbjs/lib/invariant'); | ||
var requestAnimationFrame = require('fbjs/lib/requestAnimationFrame'); | ||
|
||
|
@@ -247,7 +247,7 @@ type TimingAnimationConfigSingle = AnimationConfig & { | |
let _easeInOut; | ||
function easeInOut() { | ||
if (!_easeInOut) { | ||
const Easing = require('Easing'); | ||
const Easing = require('./Easing'); | ||
_easeInOut = Easing.inOut(Easing.ease); | ||
} | ||
return _easeInOut; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,10 +12,10 @@ | |
*/ | ||
'use strict'; | ||
|
||
const {PropTypes, checkPropTypes} = require('React'); | ||
const RCTCameraRollManager = require('NativeModules').CameraRollManager; | ||
const {PropTypes, checkPropTypes} = require('../react-native/React'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ../react-native/React Required module not found |
||
const RCTCameraRollManager = require('../BatchedBridge/NativeModules').CameraRollManager; | ||
|
||
const createStrictShapeTypeChecker = require('createStrictShapeTypeChecker'); | ||
const createStrictShapeTypeChecker = require('../Utilities/createStrictShapeTypeChecker'); | ||
const invariant = require('fbjs/lib/invariant'); | ||
|
||
const GROUP_TYPES_OPTIONS = { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,16 +11,16 @@ | |
*/ | ||
'use strict'; | ||
|
||
const ColorPropType = require('ColorPropType'); | ||
const NativeMethodsMixin = require('NativeMethodsMixin'); | ||
const Platform = require('Platform'); | ||
const React = require('React'); | ||
const ColorPropType = require('../../StyleSheet/ColorPropType'); | ||
const NativeMethodsMixin = require('../../Renderer/src/renderers/native/NativeMethodsMixin'); | ||
const Platform = require('../../Utilities/Platform'); | ||
const React = require('../../react-native/React'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ../../react-native/React Required module not found |
||
const PropTypes = require('prop-types'); | ||
const StyleSheet = require('StyleSheet'); | ||
const View = require('View'); | ||
const ViewPropTypes = require('ViewPropTypes'); | ||
const StyleSheet = require('../../StyleSheet/StyleSheet'); | ||
const View = require('../View/View'); | ||
const ViewPropTypes = require('../View/ViewPropTypes'); | ||
|
||
const requireNativeComponent = require('requireNativeComponent'); | ||
const requireNativeComponent = require('../../ReactNative/requireNativeComponent'); | ||
|
||
const GRAY = '#999999'; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
* @flow | ||
*/ | ||
'use strict'; | ||
var PropTypes = require('React').PropTypes; | ||
var PropTypes = require('../../react-native/React').PropTypes; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ../../react-native/React Required module not found |
||
|
||
/** | ||
* Additional View properties for Apple TV | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,15 +11,15 @@ | |
*/ | ||
'use strict'; | ||
|
||
const ColorPropType = require('ColorPropType'); | ||
const Platform = require('Platform'); | ||
const React = require('React'); | ||
const ColorPropType = require('../StyleSheet/ColorPropType'); | ||
const Platform = require('../Utilities/Platform'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ../Utilities/Platform Required module not found |
||
const React = require('../react-native/React'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ../react-native/React Required module not found |
||
const PropTypes = require('prop-types'); | ||
const StyleSheet = require('StyleSheet'); | ||
const Text = require('Text'); | ||
const TouchableNativeFeedback = require('TouchableNativeFeedback'); | ||
const TouchableOpacity = require('TouchableOpacity'); | ||
const View = require('View'); | ||
const StyleSheet = require('../StyleSheet/StyleSheet'); | ||
const Text = require('../Text/Text'); | ||
const TouchableNativeFeedback = require('./Touchable/TouchableNativeFeedback'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ./Touchable/TouchableNativeFeedback Required module not found |
||
const TouchableOpacity = require('./Touchable/TouchableOpacity'); | ||
const View = require('./View/View'); | ||
|
||
const invariant = require('fbjs/lib/invariant'); | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
../Utilities/Platform Required module not found