mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add Android support for fontVariant prop (#27006)
Summary: Android was missing support for the `fontVariant` prop in TextViews, this PR adds that. ## Changelog [Android] [Added] - Add Android support for fontVariant prop Pull Request resolved: https://github.com/facebook/react-native/pull/27006 Test Plan: Since I can't get RNTester to work locally (it crashes when loading `libyoga.so` on `No implementation found for long com.facebook.yoga.YogaNative.jni_YGConfigNew()`), I'll post some screenshots below of our app showing the difference. We are using a slightly different [version](https://github.com/getdelta/react-native/commit/10cafcaa0798e5dbe8b56d461885fa84c6953739) of this commit, since we're still on 0.60, but the gist remains the same when rebased on master. Before:  After:  Differential Revision: D18179642 Pulled By: mdvacca fbshipit-source-id: 03a050aa76e7bafa0343354dfa778cf74af5abd2
This commit is contained in:
committed by
Facebook Github Bot
parent
6ebd3b046e
commit
c2c4b43dfe
@@ -83,6 +83,7 @@ public class ViewProps {
|
||||
public static final String FONT_SIZE = "fontSize";
|
||||
public static final String FONT_WEIGHT = "fontWeight";
|
||||
public static final String FONT_STYLE = "fontStyle";
|
||||
public static final String FONT_VARIANT = "fontVariant";
|
||||
public static final String FONT_FAMILY = "fontFamily";
|
||||
public static final String LINE_HEIGHT = "lineHeight";
|
||||
public static final String LETTER_SPACING = "letterSpacing";
|
||||
|
||||
Reference in New Issue
Block a user