forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert ReactTextInlineImageShadowNode
Summary: Changelog: [Internal] Differential Revision: D67981753
- Loading branch information
1 parent
9b646c8
commit e3a1a31
Showing
2 changed files
with
21 additions
and
24 deletions.
There are no files selected for viewing
24 changes: 0 additions & 24 deletions
24
.../src/main/java/com/facebook/react/views/text/internal/ReactTextInlineImageShadowNode.java
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
...id/src/main/java/com/facebook/react/views/text/internal/ReactTextInlineImageShadowNode.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
package com.facebook.react.views.text.internal | ||
|
||
import com.facebook.react.uimanager.LayoutShadowNode | ||
import com.facebook.react.views.text.internal.span.TextInlineImageSpan | ||
import com.facebook.yoga.YogaNode | ||
|
||
/** Base class for [YogaNode]s that represent inline images. */ | ||
internal abstract class ReactTextInlineImageShadowNode : LayoutShadowNode() { | ||
/** | ||
* Build a [TextInlineImageSpan] from this node. This will be added to the TextView in place of | ||
* this node. | ||
*/ | ||
public abstract fun buildInlineImageSpan(): TextInlineImageSpan | ||
} |