diff --git a/Libraries/Renderer/implementations/ReactFabric-dev.js b/Libraries/Renderer/implementations/ReactFabric-dev.js index 39be9100e5e..e00496d83cf 100644 --- a/Libraries/Renderer/implementations/ReactFabric-dev.js +++ b/Libraries/Renderer/implementations/ReactFabric-dev.js @@ -6538,7 +6538,7 @@ function readContext(context) { // An array of all update queues that received updates during the current // render. When this render exits, either because it finishes or because it is -// interrupted, the interleaved updates will be transfered onto the main part +// interrupted, the interleaved updates will be transferred onto the main part // of the queue. var interleavedQueues = null; function pushInterleavedQueue(queue) { @@ -6651,7 +6651,7 @@ function enqueueUpdate(fiber, update, lane) { if (interleaved === null) { // This is the first update. Create a circular list. update.next = update; // At the end of the current render, this queue's interleaved updates will - // be transfered to the pending queue. + // be transferred to the pending queue. pushInterleavedQueue(sharedQueue); } else { @@ -11222,7 +11222,7 @@ function dispatchAction(fiber, queue, action) { if (interleaved === null) { // This is the first update. Create a circular list. update.next = update; // At the end of the current render, this queue's interleaved updates will - // be transfered to the pending queue. + // be transferred to the pending queue. pushInterleavedQueue(queue); } else { diff --git a/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js b/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js index 3772e42c474..a03c9ebe004 100644 --- a/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +++ b/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js @@ -6807,7 +6807,7 @@ function readContext(context) { // An array of all update queues that received updates during the current // render. When this render exits, either because it finishes or because it is -// interrupted, the interleaved updates will be transfered onto the main part +// interrupted, the interleaved updates will be transferred onto the main part // of the queue. var interleavedQueues = null; function pushInterleavedQueue(queue) { @@ -6920,7 +6920,7 @@ function enqueueUpdate(fiber, update, lane) { if (interleaved === null) { // This is the first update. Create a circular list. update.next = update; // At the end of the current render, this queue's interleaved updates will - // be transfered to the pending queue. + // be transferred to the pending queue. pushInterleavedQueue(sharedQueue); } else { @@ -11505,7 +11505,7 @@ function dispatchAction(fiber, queue, action) { if (interleaved === null) { // This is the first update. Create a circular list. update.next = update; // At the end of the current render, this queue's interleaved updates will - // be transfered to the pending queue. + // be transferred to the pending queue. pushInterleavedQueue(queue); } else { diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/network/ProgressiveStringDecoder.java b/ReactAndroid/src/main/java/com/facebook/react/modules/network/ProgressiveStringDecoder.java index a89865e3f74..811584f56e7 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/network/ProgressiveStringDecoder.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/network/ProgressiveStringDecoder.java @@ -58,20 +58,20 @@ public class ProgressiveStringDecoder { ByteBuffer decodeBuffer = ByteBuffer.wrap(decodeData, 0, length); CharBuffer result = null; boolean decoded = false; - int remainderLenght = 0; - while (!decoded && (remainderLenght < 4)) { + int remainderLength = 0; + while (!decoded && (remainderLength < 4)) { try { result = mDecoder.decode(decodeBuffer); decoded = true; } catch (CharacterCodingException e) { - remainderLenght++; - decodeBuffer = ByteBuffer.wrap(decodeData, 0, length - remainderLenght); + remainderLength++; + decodeBuffer = ByteBuffer.wrap(decodeData, 0, length - remainderLength); } } - boolean hasRemainder = decoded && remainderLenght > 0; + boolean hasRemainder = decoded && remainderLength > 0; if (hasRemainder) { - remainder = new byte[remainderLenght]; - System.arraycopy(decodeData, length - remainderLenght, remainder, 0, remainderLenght); + remainder = new byte[remainderLength]; + System.arraycopy(decodeData, length - remainderLength, remainder, 0, remainderLength); } else { remainder = null; } diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputShadowNode.java index 5cc8758654a..e621e1b585f 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputShadowNode.java @@ -258,7 +258,7 @@ public class ReactTextInputShadowNode extends ReactBaseTextShadowNode } /** - * May be overriden by subclasses that would like to provide their own instance of the internal + * May be overridden by subclasses that would like to provide their own instance of the internal * {@code EditText} this class uses to determine the expected size of the view. */ protected EditText createInternalEditText() { diff --git a/ReactAndroid/src/main/jni/first-party/yogajni/jni/ScopedGlobalRef.h b/ReactAndroid/src/main/jni/first-party/yogajni/jni/ScopedGlobalRef.h index 4d06a45930d..e50a5702f5c 100644 --- a/ReactAndroid/src/main/jni/first-party/yogajni/jni/ScopedGlobalRef.h +++ b/ReactAndroid/src/main/jni/first-party/yogajni/jni/ScopedGlobalRef.h @@ -36,7 +36,7 @@ namespace vanillajni { * This class is very explicit in its behavior, and it does not allow to perform * unexpected conversions or unexpected ownership transfer. In practice, this * class acts as a unique pointer where the underying JNI reference can have one - * and just one owner. Transfering ownership is allowed but it is an explicit + * and just one owner. Transferring ownership is allowed but it is an explicit * operation (implemneted via move semantics and also via explicity API calls). * * Note that this class doesn't receive an explicit JNIEnv at construction time. diff --git a/ReactAndroid/src/main/jni/first-party/yogajni/jni/ScopedLocalRef.h b/ReactAndroid/src/main/jni/first-party/yogajni/jni/ScopedLocalRef.h index bd046a279f9..9e127db308e 100644 --- a/ReactAndroid/src/main/jni/first-party/yogajni/jni/ScopedLocalRef.h +++ b/ReactAndroid/src/main/jni/first-party/yogajni/jni/ScopedLocalRef.h @@ -38,7 +38,7 @@ namespace vanillajni { * This class is very explicit in its behavior, and it does not allow to perform * unexpected conversions or unexpected ownership transfer. In practice, this * class acts as a unique pointer where the underying JNI reference can have one - * and just one owner. Transfering ownership is allowed but it is an explicit + * and just one owner. Transferring ownership is allowed but it is an explicit * operation (implemneted via move semantics and also via explicity API calls). * * As with standard JNI local references it is not a valid operation to keep a diff --git a/ReactCommon/react/renderer/graphics/Transform.h b/ReactCommon/react/renderer/graphics/Transform.h index 61522d40414..a275afb1944 100644 --- a/ReactCommon/react/renderer/graphics/Transform.h +++ b/ReactCommon/react/renderer/graphics/Transform.h @@ -165,17 +165,17 @@ struct Transform { }; /* - * Applies tranformation to the given point. + * Applies transformation to the given point. */ Point operator*(Point const &point, Transform const &transform); /* - * Applies tranformation to the given size. + * Applies transformation to the given size. */ Size operator*(Size const &size, Transform const &transform); /* - * Applies tranformation to the given rect. + * Applies transformation to the given rect. * ONLY SUPPORTS scale and translation transformation. */ Rect operator*(Rect const &rect, Transform const &transform); diff --git a/packages/rn-tester/js/examples/ToastAndroid/ToastAndroidExample.android.js b/packages/rn-tester/js/examples/ToastAndroid/ToastAndroidExample.android.js index c09c7c744e7..cdc97ab4a4c 100644 --- a/packages/rn-tester/js/examples/ToastAndroid/ToastAndroidExample.android.js +++ b/packages/rn-tester/js/examples/ToastAndroid/ToastAndroidExample.android.js @@ -54,7 +54,7 @@ const ToastWithCenterGravity = () => { ToastAndroid.showWithGravity( - 'A problem has been occured while submitting your data.', + 'A problem has been occurred while submitting your data.', ToastAndroid.SHORT, ToastAndroid.CENTER, )