mirror of
https://github.com/facebook/react-native.git
synced 2024-11-21 22:10:14 +00:00
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:
parent
a9a1c86a92
commit
9db28834e2
@ -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);
|
||||
}
|
@ -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)
|
||||
}
|
Loading…
Reference in New Issue
Block a user