Migrate com.facebook.react.views.text.ReactTextViewManagerCallback to Kotlin (#47516)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/47516

As per title.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D65598258

fbshipit-source-id: 0ef7e9a4aefcb021bc55698eaf43c2a69bbb4f63
This commit is contained in:
Fabrizio Cucci 2024-11-11 02:49:09 -08:00 committed by Facebook GitHub Bot
parent a9a1c86a92
commit 9db28834e2
2 changed files with 25 additions and 25 deletions

View File

@ -1,25 +0,0 @@
/*
* 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.text.Spannable;
/**
* This interface allows clients of {@link ReactTextViewManager} to customize or prepare {@link
* Spannable} object that represent text that will be rendered on the screen.
*/
public interface ReactTextViewManagerCallback {
/**
* Callback executed right after the {@link Spannable} object is created by React.
*
* <p>This callback can be used by different implementations of ReactTextViewManager to customize
* Spannable or extend managed created by React.
*/
void onPostProcessSpannable(Spannable text);
}

View File

@ -0,0 +1,25 @@
/*
* 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.text.Spannable
/**
* This interface allows clients of [ReactTextViewManager] to customize or prepare [Spannable]
* object that represent text that will be rendered on the screen.
*/
public fun interface ReactTextViewManagerCallback {
/**
* Callback executed right after the [Spannable] object is created by React.
*
* This callback can be used by different implementations of ReactTextViewManager to customize or
* extend the [Spannable] created by React.
*/
public fun onPostProcessSpannable(text: Spannable)
}