Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
package com.facebook.react.bridge

/**
* Extends RuntimeException so that it may be caught by a [ReactSoftExceptionListener]. Any
* [ReactSoftExceptionListener] that catches a ReactNoCrashSoftException should log it only and not
* Extends RuntimeException so that it may be caught by a [ReactSoftExceptionLogger.ReactSoftExceptionListener]. Any
* [ReactSoftExceptionLogger.ReactSoftExceptionListener] that catches a ReactNoCrashSoftException should log it only and not
* crash, no matter what.
*/
public open class ReactNoCrashSoftException : RuntimeException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public object ReactBuildConfig {

@JvmField public val EXOPACKAGE_FLAGS: Int = BuildConfig.EXOPACKAGE_FLAGS

/** [Experimental] Enable React Native DevTools in release builds. */
/** **Experimental** Enable React Native DevTools in release builds. */
@JvmField
public val UNSTABLE_ENABLE_FUSEBOX_RELEASE: Boolean = BuildConfig.UNSTABLE_ENABLE_FUSEBOX_RELEASE

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import android.view.View
import android.widget.EditText

/**
* A class allows recognizing double key tap of "R", used to reload JS in [AbstractReactActivity],
* A class allows recognizing double key tap of "R", used to reload JS in [com.facebook.react.ReactDelegate],
* [RedBoxDialogSurfaceDelegate] and [com.facebook.react.ReactActivity].
*/
public class DoubleTapReloadRecognizer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import com.facebook.react.uimanager.debug.NotThreadSafeViewHierarchyUpdateDebugL
/**
* Debug object that listens to bridge busy/idle events and UiManagerModule dispatches and uses it
* to calculate whether JS was able to update the UI during a given frame. After being installed on
* a [ReactBridge] and a [UIManagerModule], [.getDidJSHitFrameAndCleanup] should be called once per
* frame via a [Choreographer.FrameCallback].
* a [ReactBridge] and a [com.facebook.react.uimanager.UIManagerModule], [.getDidJSHitFrameAndCleanup] should be called once per
* frame via a [android.view.Choreographer.FrameCallback].
*/
internal class DidJSUpdateUiDuringFrameDetector :
NotThreadSafeBridgeIdleDebugListener, NotThreadSafeViewHierarchyUpdateDebugListener {
Expand Down Expand Up @@ -53,9 +53,9 @@ internal class DidJSUpdateUiDuringFrameDetector :
}

/**
* Designed to be called from a [Choreographer.FrameCallback.doFrame] call.
* Designed to be called from a [android.view.Choreographer.FrameCallback.doFrame] call.
*
* There are two 'success' cases that will cause [.getDidJSHitFrameAndCleanup] to return true for
* There are two 'success' cases that will cause [getDidJSHitFrameAndCleanup] to return true for
* a given frame:
* 1. UIManagerModule finished dispatching a batched UI update on the UI thread during the frame.
* This means that during the next hierarchy traversal, new UI will be drawn if needed (good).
Expand All @@ -67,8 +67,8 @@ internal class DidJSUpdateUiDuringFrameDetector :
* NB: This call can only be called once for a given frame time range because it cleans up events
* it recorded for that frame.
*
* NB2: This makes the assumption that onViewHierarchyUpdateEnqueued is called from the
* [ ][UIManagerModule.onBatchComplete], e.g. while the bridge is still considered busy, which
* NB2: This makes the assumption that [onViewHierarchyUpdateEnqueued] is called from the
* [com.facebook.react.uimanager.UIManagerModule.onBatchComplete], e.g. while the bridge is still considered busy, which
* means there is no race condition where the bridge has gone idle but a hierarchy update is
* waiting to be enqueued.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ constructor(
* Get the default Fresco configuration builder. Allows adding of configuration options in
* addition to the default values.
*
* @return [ImagePipelineConfig.Builder] that has been initialized with default values
* @return [com.facebook.imagepipeline.core.ImagePipelineConfig.Builder] that has been initialized with default values
*/
@JvmStatic
public fun getDefaultConfigBuilder(context: ReactContext): ImagePipelineConfig.Builder {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ import kotlin.collections.Collection
import kotlin.jvm.JvmStatic

/**
* A replacement for [com.facebook.react.CatalystInstance] responsible for creating and managing a
* A replacement for [com.facebook.react.bridge.CatalystInstance] responsible for creating and managing a
* React Native instance
*/
@ThreadSafe
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import javax.annotation.concurrent.NotThreadSafe

/**
* Provides implementation of common tasks for view and it's view manager supporting property
* [removeClippedSubviews].
* [com.facebook.react.uimanager.ReactClippingViewGroup.removeClippedSubviews].
*/
@NotThreadSafe
public object ReactClippingViewGroupHelper {
Expand All @@ -23,7 +23,7 @@ public object ReactClippingViewGroupHelper {
private val helperRect: Rect = Rect()

/**
* Can be used by view that support [removeClippedSubviews] property to calculate area that given
* Can be used by view that support [com.facebook.react.uimanager.ReactClippingViewGroup.removeClippedSubviews] property to calculate area that given
* [view] should be clipped to based on the clipping rectangle of it's parent in case when parent
* is also set to clip it's children.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import com.facebook.react.bridge.ReadableMap
* accessor methods of [ReadableMap] by adding a default value property such that caller is enforced
* to provide a default value for a style property.
*
* Instances of this class are used to update [View] or [CSSNode] style properties. Since properties
* Instances of this class are used to update [android.view.View] or [CSSNode] style properties. Since properties
* are generated by React framework based on what has been updated each value in this map should
* either be interpreted as a new value set for a style property or as a "reset this property to
* default" command in case when value is null (this is a way React communicates change in which the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ package com.facebook.react.uimanager.annotations
* value that is going to be used: [defaultBoolean], [defaultDouble], etc.)
*
* Since in case of property removal for non-primitive value type setter will be called with value
* set to `null` it's required that value type is annotated with [Nullable].
* set to `null` it's required that value type is annotated with [androidx.annotation.Nullable].
*
* Note: Since boolean property type can be represented both as primitive and wrapped default value
* set through [defaultBoolean] is only respected for primitive type and for the wrapped type `null`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import com.facebook.react.common.SystemClock.uptimeMillis
* future and it is highly recommended to use only `getEventData`.
*
* Old, pre-Fabric Events only used viewTag as the identifier, but Fabric needs surfaceId as well as
* viewTag. You may use [UIManagerHelper.getSurfaceId] on a Fabric-managed View to get the
* viewTag. You may use [com.facebook.react.uimanager.UIManagerHelper.getSurfaceId] on a Fabric-managed View to get the
* surfaceId. Fabric will work without surfaceId - making [Event] backwards-compatible - but Events
* without SurfaceId are slightly slower to propagate.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import com.facebook.react.uimanager.common.ViewUtil
import com.facebook.react.views.view.ReactViewGroup
import com.facebook.react.views.view.ReactViewManager

/** View manager for [ReactHorizontalScrollContainerView] components. */
/** View manager for [ReactHorizontalScrollContainerLegacyView] components. */
@ReactModule(name = ReactHorizontalScrollContainerViewManager.REACT_CLASS)
public class ReactHorizontalScrollContainerViewManager : ReactViewManager() {
public override fun getName(): String = REACT_CLASS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ import com.facebook.react.views.text.DefaultStyleValuesUtil.getDefaultTextColorH
/**
* Previously a superclass of multiple text view managers. Now only used by [ReactTextViewManager].
*
* This is a "shadowing" view manager, which means that the [NativeViewHierarchyManager] will NOT
* manage children of native [TextView] instances instantiated by this manager. Instead we
* use @{link ReactBaseTextShadowNode} hierarchy to calculate a [Spannable] text represented the
* This is a "shadowing" view manager, which means that the [com.facebook.react.uimanager.NativeViewHierarchyManager] will NOT
* manage children of native [android.widget.TextView] instances instantiated by this manager. Instead we
* use @{link ReactBaseTextShadowNode} hierarchy to calculate a [android.text.Spannable] text represented the
* whole text subtree.
*/
internal abstract class ReactTextAnchorViewManager<C : ReactBaseTextShadowNode?> :
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import org.mockito.kotlin.verify
import org.robolectric.RobolectricTestRunner
import org.robolectric.RuntimeEnvironment

/** Verify that [ScalingUtils] properties are being applied correctly by [ReactImageManager]. */
/** Verify that [com.facebook.drawee.drawable.ScalingUtils] properties are being applied correctly by [ReactImageManager]. */
@RunWith(RobolectricTestRunner::class)
class ReactImagePropertyTest {

Expand Down
Loading