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
204 changes: 0 additions & 204 deletions packages/react-native/ReactAndroid/api/ReactAndroid.api

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions packages/react-native/ReactAndroid/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ react.internal.disableJavaVersionAlignment=true

# We ignore:
# - BuildConfig classes because they are generated and not part of the public API
# - PropsSetter classes because they are generated by the Annotation processor which is not used in OSS
binaryCompatibilityValidator.ignoredClasses=com.facebook.react.BuildConfig,\
com.facebook.react.views.safeareaview.ReactSafeAreaViewManager$$PropsSetter,\
com.facebook.react.views.unimplementedview.ReactUnimplementedViewManager$$PropsSetter,\
com.facebook.react.views.safeareaview.ReactSafeAreaViewShadowNode$$PropsSetter
binaryCompatibilityValidator.ignoredClasses=com.facebook.react.BuildConfig

binaryCompatibilityValidator.ignoredPackages=com.facebook.debug,\
com.facebook.fbreact,\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.facebook.react.bridge.DynamicFromObject;
import com.facebook.react.bridge.ReadableArray;
import com.facebook.react.bridge.ReadableMap;
import com.facebook.react.common.annotations.UnstableReactNativeAPI;
import com.facebook.react.uimanager.annotations.ReactProp;
import com.facebook.react.uimanager.annotations.ReactPropGroup;
import com.facebook.react.uimanager.annotations.ReactPropertyHolder;
Expand Down Expand Up @@ -268,6 +269,7 @@ private void generateCode(ClassInfo classInfo, List<PropertyInfo> properties)
TypeSpec holderClass =
TypeSpec.classBuilder(holderClassName)
.addSuperinterface(superType)
.addAnnotation(UnstableReactNativeAPI.class)
.addModifiers(PUBLIC)
.addMethod(generateSetPropertySpec(classInfo, properties))
.addMethod(getMethods)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,10 @@
* LICENSE file in the root directory of this source tree.
*/

package com.facebook.react.views.text;
package com.facebook.react.views.text

/** A virtual text node. */
public class ReactVirtualTextShadowNode extends ReactBaseTextShadowNode {
internal class ReactVirtualTextShadowNode : ReactBaseTextShadowNode() {

@Override
public boolean isVirtual() {
return true;
}

public ReactVirtualTextShadowNode() {}
override fun isVirtual(): Boolean = true
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*
* 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 android.view.View
import com.facebook.react.module.annotations.ReactModule
import com.facebook.react.uimanager.BaseViewManager
import com.facebook.react.uimanager.ThemedReactContext

/**
* Manages raw text nodes. Since they are used only as a virtual nodes any type of native view
* operation will throw an [IllegalStateException]
*/
@ReactModule(name = ReactVirtualTextViewManager.REACT_CLASS)
internal class ReactVirtualTextViewManager : BaseViewManager<View, ReactVirtualTextShadowNode>() {

public override fun getName(): String = REACT_CLASS

protected override fun createViewInstance(context: ThemedReactContext): View {
throw IllegalStateException("Attempt to create a native view for RCTVirtualText")
}

public override fun updateExtraData(view: View, extraData: Any): Unit {}

public override fun getShadowNodeClass(): Class<ReactVirtualTextShadowNode> =
ReactVirtualTextShadowNode::class.java

override fun createShadowNodeInstance(): ReactVirtualTextShadowNode = ReactVirtualTextShadowNode()

internal companion object {
public const val REACT_CLASS: String = "RCTVirtualText"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import android.view.Gravity
import android.widget.LinearLayout
import androidx.appcompat.widget.AppCompatTextView

public class ReactUnimplementedView(context: Context) : LinearLayout(context) {
internal class ReactUnimplementedView(context: Context) : LinearLayout(context) {

private val textView: AppCompatTextView

Expand All @@ -31,7 +31,7 @@ public class ReactUnimplementedView(context: Context) : LinearLayout(context) {
addView(textView)
}

public fun setName(name: String) {
internal fun setName(name: String) {
textView.setText("'$name' is not Fabric compatible yet.")
}
}