From 385473522cbc525aad08500f5a752dea734c14c3 Mon Sep 17 00:00:00 2001 From: Kacper Kafara Date: Fri, 1 Dec 2023 21:23:06 -0800 Subject: [PATCH] Fix typos in ReactCompoundViewGroup comments (#41729) Summary: Was stepping with debugger through the code & noticed few typos. ## Changelog: [ANDROID] [FIXED] - Typos in `ReactCompoundViewGroup` comments Pull Request resolved: https://github.com/facebook/react-native/pull/41729 Test Plan: Typos in docs Reviewed By: cortinico Differential Revision: D51753447 Pulled By: arushikesarwani94 fbshipit-source-id: b373d67ca8b6c9f22d80ea1ccee98ecc5151b325 --- .../facebook/react/uimanager/ReactCompoundViewGroup.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactCompoundViewGroup.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactCompoundViewGroup.java index e46401da7af9f9..9e38a645abf763 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactCompoundViewGroup.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactCompoundViewGroup.java @@ -8,15 +8,15 @@ package com.facebook.react.uimanager; /** - * This interface should be implemented be native ViewGroup subclasses that can represent more than + * This interface should be implemented by native ViewGroup subclasses that can represent more than * a single react node. In that case, virtual and non-virtual (mapping to a View) elements can * overlap, and TouchTargetHelper may incorrectly dispatch touch event to a wrong element because it - * priorities children over parents. + * prioritizes children over parents. */ public interface ReactCompoundViewGroup extends ReactCompoundView { /** - * Returns true if react node responsible for the touch even is flattened into this ViewGroup. Use - * reactTagForTouch() to get its tag. + * Returns true if react node responsible for the touch event is flattened into this ViewGroup. + * Use reactTagForTouch() to get its tag. */ boolean interceptsTouchEvent(float touchX, float touchY); }