diff --git a/Libraries/Inspector/Inspector.js b/Libraries/Inspector/Inspector.js
index 8bfe2ef4238399..37eef369bb9459 100644
--- a/Libraries/Inspector/Inspector.js
+++ b/Libraries/Inspector/Inspector.js
@@ -208,7 +208,7 @@ class Inspector extends React.Component<{
});
}
- setTouchTargetting(val: bool) {
+ setTouchTargeting(val: bool) {
Touchable.TOUCH_TARGET_DEBUG = val;
this.props.onRequestRerenderApp((inspectedViewTag) => {
this.setState({inspectedViewTag});
@@ -247,8 +247,8 @@ class Inspector extends React.Component<{
hierarchy={this.state.hierarchy}
selection={this.state.selection}
setSelection={this.setSelection.bind(this)}
- touchTargetting={Touchable.TOUCH_TARGET_DEBUG}
- setTouchTargetting={this.setTouchTargetting.bind(this)}
+ touchTargeting={Touchable.TOUCH_TARGET_DEBUG}
+ setTouchTargeting={this.setTouchTargeting.bind(this)}
networking={this.state.networking}
setNetworking={this.setNetworking.bind(this)}
/>
diff --git a/Libraries/Inspector/InspectorPanel.js b/Libraries/Inspector/InspectorPanel.js
index b7b6f61eb3e621..a37b37f8ef2885 100644
--- a/Libraries/Inspector/InspectorPanel.js
+++ b/Libraries/Inspector/InspectorPanel.js
@@ -82,8 +82,8 @@ class InspectorPanel extends React.Component<$FlowFixMeProps> {
onClick={this.props.setNetworking}
/>
@@ -98,8 +98,8 @@ InspectorPanel.propTypes = {
inspected: PropTypes.object,
perfing: PropTypes.bool,
setPerfing: PropTypes.func,
- touchTargetting: PropTypes.bool,
- setTouchTargetting: PropTypes.func,
+ touchTargeting: PropTypes.bool,
+ setTouchTargeting: PropTypes.func,
networking: PropTypes.bool,
setNetworking: PropTypes.func,
};
diff --git a/Libraries/vendor/emitter/EventValidator.js b/Libraries/vendor/emitter/EventValidator.js
index 5fc234b2263ab4..6671c17c1061ca 100644
--- a/Libraries/vendor/emitter/EventValidator.js
+++ b/Libraries/vendor/emitter/EventValidator.js
@@ -79,10 +79,10 @@ if (__DEV__) {
return typeRecommendations.sort(recommendationSort)[0];
};
- var typeRecommendationFor = function (type, recomendedType) {
+ var typeRecommendationFor = function (type, recommendedType) {
return {
- type: recomendedType,
- distance: damerauLevenshteinDistance(type, recomendedType)
+ type: recommendedType,
+ distance: damerauLevenshteinDistance(type, recommendedType)
};
};
diff --git a/RNTester/js/ScrollViewExample.js b/RNTester/js/ScrollViewExample.js
index 49ea1fbefbe04b..4af1ddada33cce 100644
--- a/RNTester/js/ScrollViewExample.js
+++ b/RNTester/js/ScrollViewExample.js
@@ -81,11 +81,11 @@ exports.examples = [
render: function() {
function renderScrollView(
title: string,
- addtionalStyles: typeof StyleSheet,
+ additionalStyles: typeof StyleSheet,
) {
let _scrollView: ScrollView;
return (
-
+
{title}
{
diff --git a/React/Base/Surface/RCTSurface.mm b/React/Base/Surface/RCTSurface.mm
index 5002c9f6dd3b62..2c5b55cd176429 100644
--- a/React/Base/Surface/RCTSurface.mm
+++ b/React/Base/Surface/RCTSurface.mm
@@ -457,14 +457,14 @@ - (BOOL)synchronouslyWaitForStage:(RCTSurfaceStage)stage timeout:(NSTimeInterval
RCTAssert(NO, @"Only waiting for `RCTSurfaceStageSurfaceDidInitialRendering` and `RCTSurfaceStageSurfaceDidInitialLayout` stages is supported.");
}
- BOOL timeoutOccured = dispatch_semaphore_wait(semaphore, dispatch_time(DISPATCH_TIME_NOW, timeout * NSEC_PER_SEC));
- if (!timeoutOccured) {
+ BOOL timeoutOccurred = dispatch_semaphore_wait(semaphore, dispatch_time(DISPATCH_TIME_NOW, timeout * NSEC_PER_SEC));
+ if (!timeoutOccurred) {
// Balancing the semaphore.
- // Note: `dispatch_semaphore_wait` reverts the decrement in case when timeout occured.
+ // Note: `dispatch_semaphore_wait` reverts the decrement in case when timeout occurred.
dispatch_semaphore_signal(semaphore);
}
- return !timeoutOccured;
+ return !timeoutOccurred;
}
#pragma mark - RCTSurfaceRootShadowViewDelegate
diff --git a/React/Views/ScrollView/RCTScrollView.m b/React/Views/ScrollView/RCTScrollView.m
index 1f08f0c33747bd..ecdb9ddaa2ddc0 100644
--- a/React/Views/ScrollView/RCTScrollView.m
+++ b/React/Views/ScrollView/RCTScrollView.m
@@ -419,7 +419,7 @@ - (instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher
RCT_NOT_IMPLEMENTED(- (instancetype)initWithFrame:(CGRect)frame)
RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)aDecoder)
-static inline void RCTApplyTranformationAccordingLayoutDirection(UIView *view, UIUserInterfaceLayoutDirection layoutDirection) {
+static inline void RCTApplyTransformationAccordingLayoutDirection(UIView *view, UIUserInterfaceLayoutDirection layoutDirection) {
view.transform =
layoutDirection == UIUserInterfaceLayoutDirectionLeftToRight ?
CGAffineTransformIdentity :
@@ -430,8 +430,8 @@ - (void)setReactLayoutDirection:(UIUserInterfaceLayoutDirection)layoutDirection
{
[super setReactLayoutDirection:layoutDirection];
- RCTApplyTranformationAccordingLayoutDirection(_scrollView, layoutDirection);
- RCTApplyTranformationAccordingLayoutDirection(_contentView, layoutDirection);
+ RCTApplyTransformationAccordingLayoutDirection(_scrollView, layoutDirection);
+ RCTApplyTransformationAccordingLayoutDirection(_contentView, layoutDirection);
}
- (void)setRemoveClippedSubviews:(__unused BOOL)removeClippedSubviews
@@ -450,7 +450,7 @@ - (void)insertReactSubview:(UIView *)view atIndex:(NSInteger)atIndex
{
RCTAssert(_contentView == nil, @"RCTScrollView may only contain a single subview");
_contentView = view;
- RCTApplyTranformationAccordingLayoutDirection(_contentView, self.reactLayoutDirection);
+ RCTApplyTransformationAccordingLayoutDirection(_contentView, self.reactLayoutDirection);
[_scrollView addSubview:view];
}
}
diff --git a/ReactAndroid/src/main/jni/first-party/fb/jni/fbjni.cpp b/ReactAndroid/src/main/jni/first-party/fb/jni/fbjni.cpp
index 62e27a75657aac..e595ea90f6495c 100644
--- a/ReactAndroid/src/main/jni/first-party/fb/jni/fbjni.cpp
+++ b/ReactAndroid/src/main/jni/first-party/fb/jni/fbjni.cpp
@@ -21,25 +21,25 @@ jint initialize(JavaVM* vm, std::function&& init_fn) noexcept {
static std::once_flag flag{};
// TODO (t7832883): DTRT when we have exception pointers
static auto error_msg = std::string{"Failed to initialize fbjni"};
- static auto error_occured = false;
+ static auto error_occurred = false;
std::call_once(flag, [vm] {
try {
Environment::initialize(vm);
} catch (std::exception& ex) {
- error_occured = true;
+ error_occurred = true;
try {
error_msg = std::string{"Failed to initialize fbjni: "} + ex.what();
} catch (...) {
// Ignore, we already have a fall back message
}
} catch (...) {
- error_occured = true;
+ error_occurred = true;
}
});
try {
- if (error_occured) {
+ if (error_occurred) {
throw std::runtime_error(error_msg);
}