Skip to content

Commit 0e8b207

Browse files
jutazfacebook-github-bot-4
authored andcommitted
Bugfix - Typos
Summary: Fixed few typos in `./Examples` and `./Libraries` folders. Closes react#4788 Reviewed By: svcscm Differential Revision: D2759918 Pulled By: androidtrunkagent fb-gh-sync-id: d692b5c7f561822353e522f9d4dfde7e60b491cf
1 parent 7871abf commit 0e8b207

39 files changed

Lines changed: 57 additions & 58 deletions

Examples/2048/GameBoard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'use strict';
1818

1919
// NB: Taken straight from: https://github.com/IvanVergiliev/2048-react/blob/master/src/board.js
20-
// with no modificiation except to format it for CommonJS and fix lint/flow errors
20+
// with no modification except to format it for CommonJS and fix lint/flow errors
2121

2222
var rotateLeft = function (matrix) {
2323
var rows = matrix.length;

Examples/UIExplorer/UIExplorerUnitTests/LayoutSubviewsOrderingTest.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ @implementation LayoutSubviewsOrderingTest
1414
/**
1515
* This test exists to insure that didLayoutSubviews is always called immediately after layoutSubviews for a VC:View
1616
* pair. In Catalyst we have multiple levels of ViewController containment, and we rely on this ordering
17-
* to insure that layoutGuides are set on RKViewControllers before Views further down in the heirarchy have
17+
* to insure that layoutGuides are set on RKViewControllers before Views further down in the hierarchy have
1818
* their layoutSubviews called (and need to use the aforementioned layoutGuides)
1919
*/
2020
- (void)testLayoutSubviewsOrdering
@@ -63,7 +63,7 @@ - (void)testLayoutSubviewsOrdering
6363
}
6464
}] viewDidLayoutSubviews];
6565

66-
// setup View heirarchy and force layout
66+
// setup View hierarchy and force layout
6767
parentVC.view = parentView;
6868
childVC.view = childView;
6969
[parentVC addChildViewController:childVC];

Examples/UIExplorer/UIExplorerUnitTests/RCTContextExecutorTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ - (void)testJavaScriptCallSpeed
9898
{
9999
/**
100100
* Since we almost don't change the RCTContextExecutor logic, and this test is
101-
* very likely to become flaky (specially accross different devices) leave it
101+
* very likely to become flaky (specially across different devices) leave it
102102
* to be run manually
103103
*
104104
* Previous Values: If you change the executor code, you should update this values

Examples/UIExplorer/WebViewExample.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ var WebViewExample = React.createClass({
148148
url: url,
149149
});
150150
}
151-
// dismiss keyoard
151+
// dismiss keyboard
152152
this.refs[TEXT_INPUT_REF].blur();
153153
},
154154

Examples/UIExplorer/XHRExample.android.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var XHRExampleHeaders = require('./XHRExampleHeaders');
3030
var XHRExampleCookies = require('./XHRExampleCookies');
3131

3232

33-
// TODO t7093728 This is a simlified XHRExample.ios.js.
33+
// TODO t7093728 This is a simplified XHRExample.ios.js.
3434
// Once we have Camera roll, Toast, Intent (for opening URLs)
3535
// we should make this consistent with iOS.
3636

Libraries/Animated/examples/demo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ <h2>stopAnimation</h2>
326326

327327
<p><code>Animated</code> can offload the animation to a different thread (CoreAnimation, CSS transitions, main thread...) and we don't have a good way to know the real value. If you try to query the value then modify it, you are going to be out of sync and the result will look terrible.</p>
328328

329-
<p>There's however one exception: when you want to stop the current animation. You need to know where it stopped in order to continue from there. We cannot know the value synchronously so we give it via a callback in <code>stopAnimation</code>. It will not suffer from beign out of sync since the animation is no longer running.</p>
329+
<p>There's however one exception: when you want to stop the current animation. You need to know where it stopped in order to continue from there. We cannot know the value synchronously so we give it via a callback in <code>stopAnimation</code>. It will not suffer from being out of sync since the animation is no longer running.</p>
330330

331331
<script type="text/jsx;harmony=true;stripTypes=true">
332332
examplify(React.createClass({

Libraries/Animated/src/AnimatedImplementation.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ class AnimatedValue extends AnimatedWithChildren {
578578
/**
579579
* Adds an asynchronous listener to the value so you can observe updates from
580580
* animations or whathaveyou. This is useful because there is no way to
581-
* syncronously read the value because it might be driven natively.
581+
* synchronously read the value because it might be driven natively.
582582
*/
583583
addListener(callback: ValueListenerCallback): string {
584584
var id = String(_uniqueId++);
@@ -1485,7 +1485,7 @@ var event = function(
14851485
* The simplest workflow is to create an `Animated.Value`, hook it up to one or
14861486
* more style attributes of an animated component, and then drive updates either
14871487
* via animations, such as `Animated.timing`, or by hooking into gestures like
1488-
* panning or scolling via `Animated.event`. `Animated.Value` can also bind to
1488+
* panning or scrolling via `Animated.event`. `Animated.Value` can also bind to
14891489
* props other than style, and can be interpolated as well. Here is a basic
14901490
* example of a container view that will fade in when it's mounted:
14911491
*
@@ -1517,7 +1517,7 @@ var event = function(
15171517
* Note that only animatable components can be animated. `View`, `Text`, and
15181518
* `Image` are already provided, and you can create custom ones with
15191519
* `createAnimatedComponent`. These special components do the magic of binding
1520-
* the animated values to the properties, and do targetted native updates to
1520+
* the animated values to the properties, and do targeted native updates to
15211521
* avoid the cost of the react render and reconciliation process on every frame.
15221522
* They also handle cleanup on unmount so they are safe by default.
15231523
*
@@ -1559,7 +1559,7 @@ var event = function(
15591559
* Animation App, and [Animations documentation guide](http://facebook.github.io/react-native/docs/animations.html).
15601560
*
15611561
* Note that `Animated` is designed to be fully serializable so that animations
1562-
* can be run in a high performace way, independent of the normal JavaScript
1562+
* can be run in a high performance way, independent of the normal JavaScript
15631563
* event loop. This does influence the API, so keep that in mind when it seems a
15641564
* little trickier to do something compared to a fully synchronous system.
15651565
* Checkout `Animated.Value.addListener` as a way to work around some of these

Libraries/CameraRoll/CameraRoll.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class CameraRoll {
128128
*
129129
* - local URI
130130
* - assets-library tag
131-
* - a tag not maching any of the above, which means the image data will
131+
* - a tag not matching any of the above, which means the image data will
132132
* be stored in memory (and consume memory as long as the process is alive)
133133
*
134134
* @param successCallback Invoked with the value of `tag` on success.

Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ var DrawerLayoutAndroid = React.createClass({
102102
/**
103103
* Function called when the drawer state has changed. The drawer can be in 3 states:
104104
* - idle, meaning there is no interaction with the navigation view happening at the time
105-
* - dragging, meaning there is currently an interation with the navigation view
105+
* - dragging, meaning there is currently an interaction with the navigation view
106106
* - settling, meaning that there was an interaction with the navigation view, and the
107107
* navigation view is now finishing it's closing or opening animation
108108
*/

Libraries/Components/MapView/MapView.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ var MapView = React.createClass({
150150
*
151151
* - standard: standard road map (default)
152152
* - satellite: satellite view
153-
* - hybrid: satellite view with roads and points of interest overlayed
153+
* - hybrid: satellite view with roads and points of interest overlaid
154154
*/
155155
mapType: React.PropTypes.oneOf([
156156
'standard',
@@ -172,7 +172,7 @@ var MapView = React.createClass({
172172
longitude: React.PropTypes.number.isRequired,
173173

174174
/**
175-
* Distance between the minimun and the maximum latitude/longitude
175+
* Distance between the minimum and the maximum latitude/longitude
176176
* to be displayed.
177177
*/
178178
latitudeDelta: React.PropTypes.number.isRequired,
@@ -218,7 +218,7 @@ var MapView = React.createClass({
218218
* and custom pin images.
219219
*
220220
* Note that on iOS 8 and earlier, only the standard PinColor constants
221-
* are supported for regualr pins. For custom pin images, any tintColor
221+
* are supported for regular pins. For custom pin images, any tintColor
222222
* value is supported on all iOS versions.
223223
* @platform ios
224224
*/

0 commit comments

Comments
 (0)