Summary:
Fix typos mostly in comments and some string literals.

## Changelog

[General] [Fixed] - Fix typos
Pull Request resolved: https://github.com/facebook/react-native/pull/25770

Differential Revision: D16437857

Pulled By: cpojer

fbshipit-source-id: ffeb4d6b175e341381352091134f7c97d78c679f
This commit is contained in:
Min ho Kim
2019-07-23 03:19:41 -07:00
committed by Facebook Github Bot
parent d544fa20b7
commit 84f5ebe4f9
115 changed files with 179 additions and 179 deletions
@@ -15,7 +15,7 @@ import com.facebook.react.module.annotations.ReactModule;
import java.io.File;
// This module is being called only by Java via the static method "captureHeap" that
// requires it to alreay be initialized, thus we eagerly initialize this module
// requires it to already be initialized, thus we eagerly initialize this module
@ReactModule(name = "JSCHeapCapture", needsEagerInit = true)
public class JSCHeapCapture extends ReactContextBaseJavaModule {
public interface HeapCapture extends JavaScriptModule {
@@ -294,7 +294,7 @@ public class ImageEditingManager extends ReactContextBaseJavaModule {
*/
private Bitmap crop(BitmapFactory.Options outOptions) throws IOException {
InputStream inputStream = openBitmapInputStream();
// Effeciently crops image without loading full resolution into memory
// Efficiently crops image without loading full resolution into memory
// https://developer.android.com/reference/android/graphics/BitmapRegionDecoder.html
BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(inputStream, false);
try {
@@ -13,7 +13,7 @@ import com.facebook.soloader.SoLoader;
/**
* JSCallInvoker is created at a different time/place (i.e: in CatalystInstance) than
* TurboModuleManager. Therefore, we need to wrap JSCallInvoker within a hybrid class so that we may
* pass it from CatalystInstance, through Java, to TurboMoudleManager::initHybrid.
* pass it from CatalystInstance, through Java, to TurboModuleManager::initHybrid.
*/
public class JSCallInvokerHolderImpl implements JSCallInvokerHolder {
static {
@@ -9,7 +9,7 @@ package com.facebook.react.turbomodule.core.interfaces;
import androidx.annotation.Nullable;
import java.util.Collection;
/** Interface to allow for creating and retrieving TurboModuels. */
/** Interface to allow for creating and retrieving TurboModules. */
public interface TurboModuleRegistry {
/**
@@ -159,7 +159,7 @@ public class ReactAccessibilityDelegate extends AccessibilityDelegateCompat {
setRole(info, accessibilityRole, host.getContext());
}
// states are changable.
// states are changeable.
final ReadableArray accessibilityStates =
(ReadableArray) host.getTag(R.id.accessibility_states);
final ReadableMap accessibilityState = (ReadableMap) host.getTag(R.id.accessibility_state);
@@ -47,7 +47,7 @@ public class CustomLineHeightSpan implements LineHeightSpan, ReactSpan {
// Show proportionally additional ascent / top & descent / bottom
final int additional = mHeight - (-fm.top + fm.bottom);
// Round up for the negative values and down for the positive values (arbritary choice)
// Round up for the negative values and down for the positive values (arbitrary choice)
// So that bottom - top equals additional even if it's an odd number.
fm.top -= Math.ceil(additional / 2.0f);
fm.bottom += Math.floor(additional / 2.0f);
@@ -36,7 +36,7 @@ import java.util.Map;
/**
* {@link ReactShadowNode} abstract class for spannable text nodes.
*
* <p>This class handles all text attributes assosiated with {@code <Text>}-ish node. A concrete
* <p>This class handles all text attributes associated with {@code <Text>}-ish node. A concrete
* node can be an anchor {@code <Text>} node, an anchor {@code <TextInput>} node or virtual {@code
* <Text>} node inside {@code <Text>} or {@code <TextInput>} node. Or even something else.
*
@@ -241,7 +241,7 @@ public abstract class ReactBaseTextShadowNode extends LayoutShadowNode {
// TODO(5837930): Investigate whether it's worth optimizing this part and do it if so
// The {@link SpannableStringBuilder} implementation require setSpan operation to be called
// up-to-bottom, otherwise all the spannables that are withing the region for which one may set
// up-to-bottom, otherwise all the spannables that are within the region for which one may set
// a new spannable will be wiped out
List<SetSpanOperation> ops = new ArrayList<>();
Map<Integer, ReactShadowNode> inlineViews =
@@ -149,7 +149,7 @@ public class TextLayoutManager {
SpannableStringBuilder sb = new SpannableStringBuilder();
// The {@link SpannableStringBuilder} implementation require setSpan operation to be called
// up-to-bottom, otherwise all the spannables that are withing the region for which one may set
// up-to-bottom, otherwise all the spannables that are within the region for which one may set
// a new spannable will be wiped out
List<SetSpanOperation> ops = new ArrayList<>();
@@ -263,7 +263,7 @@ public class ReactViewManager extends ViewGroupManager<ReactViewGroup> {
view.setOnClickListener(null);
view.setClickable(false);
// Don't set view.setFocusable(false) because we might still want it to be focusable for
// accessibiliy reasons
// accessibility reasons
}
}