mirror of
https://github.com/status-im/react-native.git
synced 2025-01-24 16:29:01 +00:00
dc7a87e737
Summary: <Text> component is used to describe text attributes in React. Reviewed By: mdvacca Differential Revision: D7751851 fbshipit-source-id: f90a4367cad64283ee64828b0d5e24470ee3d9f7
30 lines
1.1 KiB
C++
30 lines
1.1 KiB
C++
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <fabric/attributedstring/TextPrimitives.h>
|
|
#include <fabric/attributedstring/textValuesConversions.h>
|
|
#include <fabric/core/propsConversions.h>
|
|
#include <folly/dynamic.h>
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
APPLY_RAW_PROP_TEMPLATE(EllipsizeMode, ellipsizeModeFromDynamic)
|
|
APPLY_RAW_PROP_TEMPLATE(FontWeight, fontWeightFromDynamic)
|
|
APPLY_RAW_PROP_TEMPLATE(FontStyle, fontStyleFromDynamic)
|
|
APPLY_RAW_PROP_TEMPLATE(FontVariant, fontVariantFromDynamic)
|
|
APPLY_RAW_PROP_TEMPLATE(WritingDirection, writingDirectionFromDynamic)
|
|
APPLY_RAW_PROP_TEMPLATE(TextAlignment, textAlignmentFromDynamic)
|
|
APPLY_RAW_PROP_TEMPLATE(TextDecorationLineType, textDecorationLineTypeFromDynamic)
|
|
APPLY_RAW_PROP_TEMPLATE(TextDecorationLineStyle, textDecorationLineStyleFromDynamic)
|
|
APPLY_RAW_PROP_TEMPLATE(TextDecorationLinePattern, textDecorationLinePatternFromDynamic)
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|