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

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* 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

import com.facebook.react.common.annotations.VisibleForTesting
import com.facebook.react.uimanager.ReactShadowNodeImpl
import com.facebook.react.uimanager.annotations.ReactProp

/**
* [ReactShadowNode] class for pure raw text node (aka `textContent` in terms of DOM).
* Raw text node can only have simple string value without any attributes, properties or state.
*/
public class ReactRawTextShadowNode : ReactShadowNodeImpl() {
@set:ReactProp(name = PROP_TEXT)
public var text: String? = null
set(value) {
field = value
markUpdated()
}

override fun isVirtual(): Boolean = true

override fun toString(): String = "$viewClass [text: $text]"

public companion object {
@VisibleForTesting
public const val PROP_TEXT: String = "text"
}
}
Loading