File tree 2 files changed +4
-2
lines changed
ReactAndroid/src/main/java/com/facebook/react/views/text
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ rn_android_library(
9
9
],
10
10
deps = [
11
11
YOGA_TARGET ,
12
+ react_native_dep ("third-party/android/support/v4:lib-support-v4" ),
13
+ react_native_dep ("third-party/android/support/v7/appcompat-orig:appcompat" ),
12
14
react_native_dep ("libraries/fbcore/src/main/java/com/facebook/common/logging:logging" ),
13
15
react_native_dep ("third-party/java/infer-annotations:infer-annotations" ),
14
16
react_native_dep ("third-party/java/jsr-305:jsr-305" ),
Original file line number Diff line number Diff line change 10
10
import android .content .Context ;
11
11
import android .graphics .drawable .Drawable ;
12
12
import android .os .Build ;
13
+ import android .support .v7 .widget .AppCompatTextView ;
13
14
import android .text .Layout ;
14
15
import android .text .Spannable ;
15
16
import android .text .Spanned ;
16
17
import android .text .TextUtils ;
17
18
import android .view .Gravity ;
18
19
import android .view .ViewGroup ;
19
- import android .widget .TextView ;
20
20
import com .facebook .common .logging .FLog ;
21
21
import com .facebook .react .common .ReactConstants ;
22
22
import com .facebook .react .uimanager .ReactCompoundView ;
23
23
import com .facebook .react .uimanager .ViewDefaults ;
24
24
import com .facebook .react .views .view .ReactViewBackgroundManager ;
25
25
import javax .annotation .Nullable ;
26
26
27
- public class ReactTextView extends TextView implements ReactCompoundView {
27
+ public class ReactTextView extends AppCompatTextView implements ReactCompoundView {
28
28
29
29
private static final ViewGroup .LayoutParams EMPTY_LAYOUT_PARAMS =
30
30
new ViewGroup .LayoutParams (0 , 0 );
You can’t perform that action at this time.
0 commit comments