diff --git a/Libraries/Animated/src/__tests__/bezier-test.js b/Libraries/Animated/src/__tests__/bezier-test.js index e34c4f799..3f1070a48 100644 --- a/Libraries/Animated/src/__tests__/bezier-test.js +++ b/Libraries/Animated/src/__tests__/bezier-test.js @@ -121,7 +121,7 @@ describe('bezier', function() { assertClose(easing(0.5), 0.5, 2); }); }); - it('should be symetrical', function() { + it('should be symmetrical', function() { repeat(10)(function() { var a = Math.random(), b = 2 * Math.random() - 0.5, diff --git a/Libraries/Animated/src/createAnimatedComponent.js b/Libraries/Animated/src/createAnimatedComponent.js index 7126deaf2..2e10a6c71 100644 --- a/Libraries/Animated/src/createAnimatedComponent.js +++ b/Libraries/Animated/src/createAnimatedComponent.js @@ -149,7 +149,7 @@ function createAnimatedComponent(Component: any): any { ref={this._setComponentRef} // The native driver updates views directly through the UI thread so we // have to make sure the view doesn't get optimized away because it cannot - // go through the NativeViewHierachyManager since it operates on the shadow + // go through the NativeViewHierarchyManager since it operates on the shadow // thread. collapsable={ this._propsAnimated.__isNative ? false : props.collapsable diff --git a/Libraries/Animated/src/nodes/AnimatedInterpolation.js b/Libraries/Animated/src/nodes/AnimatedInterpolation.js index cfe9e701e..141929e5b 100644 --- a/Libraries/Animated/src/nodes/AnimatedInterpolation.js +++ b/Libraries/Animated/src/nodes/AnimatedInterpolation.js @@ -374,7 +374,7 @@ class AnimatedInterpolation extends AnimatedWithChildren { return { inputRange: this._config.inputRange, - // Only the `outputRange` can contain strings so we don't need to tranform `inputRange` here + // Only the `outputRange` can contain strings so we don't need to transform `inputRange` here outputRange: this.__transformDataType(this._config.outputRange), extrapolateLeft: this._config.extrapolateLeft || this._config.extrapolate || 'extend', diff --git a/Libraries/Animated/src/nodes/AnimatedValueXY.js b/Libraries/Animated/src/nodes/AnimatedValueXY.js index 496ccd795..4df709729 100644 --- a/Libraries/Animated/src/nodes/AnimatedValueXY.js +++ b/Libraries/Animated/src/nodes/AnimatedValueXY.js @@ -43,7 +43,7 @@ class AnimatedValueXY extends AnimatedWithChildren { } else { invariant( value.x instanceof AnimatedValue && value.y instanceof AnimatedValue, - 'AnimatedValueXY must be initalized with an object of numbers or ' + + 'AnimatedValueXY must be initialized with an object of numbers or ' + 'AnimatedValues.', ); this.x = value.x; diff --git a/Libraries/BatchedBridge/BatchedBridge.js b/Libraries/BatchedBridge/BatchedBridge.js index f3e735f48..46e8b5f41 100644 --- a/Libraries/BatchedBridge/BatchedBridge.js +++ b/Libraries/BatchedBridge/BatchedBridge.js @@ -18,7 +18,7 @@ const MessageQueue = require('MessageQueue'); // This makes stacktraces to be placed at MessageQueue rather than at where they were launched // The parameter __fbUninstallRNGlobalErrorHandler is passed to MessageQueue to prevent the handler from being installed // -// __fbUninstallRNGlobalErrorHandler is conditionally set by the Inspector while the VM is paused for intialization +// __fbUninstallRNGlobalErrorHandler is conditionally set by the Inspector while the VM is paused for initialization // If the Inspector isn't present it defaults to undefined and the global error handler is installed // The Inspector can still call MessageQueue#uninstallGlobalErrorHandler to uninstalled on attach diff --git a/Libraries/Components/Navigation/NavigatorIOS.ios.js b/Libraries/Components/Navigation/NavigatorIOS.ios.js index 96bdd3629..fe90fb9f6 100644 --- a/Libraries/Components/Navigation/NavigatorIOS.ios.js +++ b/Libraries/Components/Navigation/NavigatorIOS.ios.js @@ -337,7 +337,7 @@ var NavigatorIOS = createReactClass({ /** * Use this to specify additional props to pass to the rendered * component. `NavigatorIOS` will automatically pass in `route` and - * `navigator` props to the comoponent. + * `navigator` props to the component. */ passProps: PropTypes.object, diff --git a/Libraries/Components/ScrollView/ScrollViewStickyHeader.js b/Libraries/Components/ScrollView/ScrollViewStickyHeader.js index e86f724ba..0a320e0e3 100644 --- a/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +++ b/Libraries/Components/ScrollView/ScrollViewStickyHeader.js @@ -71,7 +71,7 @@ class ScrollViewStickyHeader extends React.Component` solves this by slicing up rendering into chunks that are * spread across multiple event loops. Expensive components can be sliced up - * recursively by wrapping pieces of them and their decendents in + * recursively by wrapping pieces of them and their descendants in * `` components. `` can be used to make sure * everything in the group is rendered recursively before calling `onDone` and * moving on to another sibling group (e.g. render one row at a time, even if @@ -83,7 +83,7 @@ const DEBUG = false; */ export type Props = { /** - * Called when all the decendents have finished rendering and mounting + * Called when all the descendants have finished rendering and mounting * recursively. */ onDone?: () => void, diff --git a/Libraries/Experimental/IncrementalPresenter.js b/Libraries/Experimental/IncrementalPresenter.js index 4dc10074e..8f273974c 100644 --- a/Libraries/Experimental/IncrementalPresenter.js +++ b/Libraries/Experimental/IncrementalPresenter.js @@ -27,7 +27,7 @@ import type {Context} from 'Incremental'; * * `` can be used to group sets of `` renders * such that they are initially invisible and removed from layout until all - * decendents have finished rendering, at which point they are drawn all at once + * descendants have finished rendering, at which point they are drawn all at once * so the UI doesn't jump around during the incremental rendering process. * * See Incremental.js for more info. diff --git a/Libraries/Experimental/SwipeableRow/SwipeableFlatList.js b/Libraries/Experimental/SwipeableRow/SwipeableFlatList.js index 3020047bf..6aa7c253a 100644 --- a/Libraries/Experimental/SwipeableRow/SwipeableFlatList.js +++ b/Libraries/Experimental/SwipeableRow/SwipeableFlatList.js @@ -51,7 +51,7 @@ type State = { * * - It ensures that at most 1 row is swiped open (auto closes others) * - It can bounce the 1st row of the list so users know it's swipeable - * - Increase performance on iOS by locking list swiping when row swiping is occuring + * - Increase performance on iOS by locking list swiping when row swiping is occurring * - More to come */ diff --git a/Libraries/Experimental/WindowedListView.js b/Libraries/Experimental/WindowedListView.js index 9d0e0ac9a..08bf44d6d 100644 --- a/Libraries/Experimental/WindowedListView.js +++ b/Libraries/Experimental/WindowedListView.js @@ -392,7 +392,7 @@ class WindowedListView extends React.Component { } if (props.onEndReached) { // Make sure we call onEndReached exactly once every time we reach the - // end. Resets if scoll back up and down again. + // end. Resets if scroll back up and down again. const willBeAtTheEnd = lastRow === (totalRows - 1); if (willBeAtTheEnd && !this._hasCalledOnEndReached) { props.onEndReached(); diff --git a/Libraries/Lists/SectionList.js b/Libraries/Lists/SectionList.js index f547066f1..354d6c6a4 100644 --- a/Libraries/Lists/SectionList.js +++ b/Libraries/Lists/SectionList.js @@ -281,7 +281,7 @@ class SectionList> extends React.PureComponent< } /** - * Tells the list an interaction has occured, which should trigger viewability calculations, e.g. + * Tells the list an interaction has occurred, which should trigger viewability calculations, e.g. * if `waitForInteractions` is true and the user has not scrolled. This is typically called by * taps on items or by navigation actions. */ diff --git a/Libraries/Lists/VirtualizeUtils.js b/Libraries/Lists/VirtualizeUtils.js index c43b13251..8845ed835 100644 --- a/Libraries/Lists/VirtualizeUtils.js +++ b/Libraries/Lists/VirtualizeUtils.js @@ -125,7 +125,7 @@ function computeWindowedRenderLimits( }; } - // Find the indices that correspond to the items at the render boundaries we're targetting. + // Find the indices that correspond to the items at the render boundaries we're targeting. let [overscanFirst, first, last, overscanLast] = elementsThatOverlapOffsets( [overscanBegin, visibleBegin, visibleEnd, overscanEnd], props.getItemCount(props.data), diff --git a/Libraries/NativeAnimation/Drivers/RCTFrameAnimation.m b/Libraries/NativeAnimation/Drivers/RCTFrameAnimation.m index cd8b3a481..a46fea6bf 100644 --- a/Libraries/NativeAnimation/Drivers/RCTFrameAnimation.m +++ b/Libraries/NativeAnimation/Drivers/RCTFrameAnimation.m @@ -115,7 +115,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init) return; } - // Do a linear remap of the two frames to safegaurd against variable framerates + // Do a linear remap of the two frames to safeguard against variable framerates NSNumber *fromFrameValue = _frames[startIndex]; NSNumber *toFrameValue = _frames[nextIndex]; NSTimeInterval fromInterval = startIndex * RCTSingleFrameInterval; diff --git a/Libraries/Performance/SamplingProfiler.js b/Libraries/Performance/SamplingProfiler.js index de8c2c0ac..87142782e 100644 --- a/Libraries/Performance/SamplingProfiler.js +++ b/Libraries/Performance/SamplingProfiler.js @@ -24,7 +24,7 @@ const SamplingProfiler = { } } catch (e) { console.log( - 'Error occured when restarting Sampling Profiler: ' + e.toString()); + 'Error occurred when restarting Sampling Profiler: ' + e.toString()); error = e.toString(); } diff --git a/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.m b/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.m index a37738bad..dea7d888c 100644 --- a/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.m +++ b/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.m @@ -346,7 +346,7 @@ static BOOL findMismatch(NSString *first, NSString *second, NSRange *firstRange, { [self invalidateContentSize]; - // Detect when _backedTextInput updates happend that didn't invoke `shouldChangeTextInRange` + // Detect when _backedTextInput updates happened that didn't invoke `shouldChangeTextInRange` // (e.g. typing simplified chinese in pinyin will insert and remove spaces without // calling shouldChangeTextInRange). This will cause JS to get out of sync so we // update the mismatched range. diff --git a/Libraries/polyfills/console.js b/Libraries/polyfills/console.js index 747b0521e..0564491af 100644 --- a/Libraries/polyfills/console.js +++ b/Libraries/polyfills/console.js @@ -477,7 +477,7 @@ if (global.nativeLoggingHook) { }); // Join all elements in the row into a single string with | separators - // (appends extra spaces to each cell to make separators | alligned) + // (appends extra spaces to each cell to make separators | aligned) function joinRow(row, space) { var cells = row.map(function(cell, i) { var extraSpaces = repeat(' ', columnWidths[i] - cell.length).join(''); diff --git a/Libraries/vendor/core/Map.js b/Libraries/vendor/core/Map.js index 33f206fcc..7d7086571 100644 --- a/Libraries/vendor/core/Map.js +++ b/Libraries/vendor/core/Map.js @@ -436,7 +436,7 @@ module.exports = (function(global, undefined) { // property of our choosing that we associate with the object. Association // is done by ways of keeping a non-enumerable property on the object. // Ideally these would be `Object.create(null)` objects but since we're - // trying to support ES3 we'll have to gaurd against collisions using + // trying to support ES3 we'll have to guard against collisions using // prefixes on the keys rather than rely on null prototype objects. map._objectIndex = {}; diff --git a/Libraries/vendor/document/selection/DocumentSelectionState.js b/Libraries/vendor/document/selection/DocumentSelectionState.js index 87ce63bce..fbfcc3062 100644 --- a/Libraries/vendor/document/selection/DocumentSelectionState.js +++ b/Libraries/vendor/document/selection/DocumentSelectionState.js @@ -20,7 +20,7 @@ var mixInEventEmitter = require('mixInEventEmitter'); * * It is intended for use by AbstractTextEditor-based components for * identifying the appropriate start/end positions to modify the - * DocumentContent, and for programatically setting browser selection when + * DocumentContent, and for programmatically setting browser selection when * components re-render. */ class DocumentSelectionState { diff --git a/RNTester/js/messagingtest.html b/RNTester/js/messagingtest.html index c9258dbf5..31200b766 100644 --- a/RNTester/js/messagingtest.html +++ b/RNTester/js/messagingtest.html @@ -6,7 +6,7 @@ -

Messages recieved from React Native: 0

+

Messages received from React Native: 0

(No messages)