Skip to content

Commit 9db2883

Browse files
fabriziocuccifacebook-github-bot
authored andcommitted
Migrate com.facebook.react.views.text.ReactTextViewManagerCallback to Kotlin (#47516)
Summary: Pull Request resolved: #47516 As per title. Changelog: [Internal] Reviewed By: javache Differential Revision: D65598258 fbshipit-source-id: 0ef7e9a4aefcb021bc55698eaf43c2a69bbb4f63
1 parent a9a1c86 commit 9db2883

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManagerCallback.java

Lines changed: 0 additions & 25 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*/
7+
8+
package com.facebook.react.views.text
9+
10+
import android.text.Spannable
11+
12+
/**
13+
* This interface allows clients of [ReactTextViewManager] to customize or prepare [Spannable]
14+
* object that represent text that will be rendered on the screen.
15+
*/
16+
public fun interface ReactTextViewManagerCallback {
17+
18+
/**
19+
* Callback executed right after the [Spannable] object is created by React.
20+
*
21+
* This callback can be used by different implementations of ReactTextViewManager to customize or
22+
* extend the [Spannable] created by React.
23+
*/
24+
public fun onPostProcessSpannable(text: Spannable)
25+
}

0 commit comments

Comments
 (0)