forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from mateoguzmana/feat/border-style-none-suppo…
…rt-fixes feat(styles): setting border style in yoga and applying logic to for `none`
- Loading branch information
Showing
9 changed files
with
126 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
packages/react-native/ReactCommon/yoga/yoga/enums/BorderStyle.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
// @generated by enums.py | ||
// clang-format off | ||
#pragma once | ||
|
||
#include <cstdint> | ||
#include <yoga/YGEnums.h> | ||
#include <yoga/enums/YogaEnums.h> | ||
|
||
namespace facebook::yoga { | ||
|
||
enum class BorderStyle : uint8_t { | ||
None = YGBorderStyleNone, | ||
Solid = YGBorderStyleSolid, | ||
Dotted = YGBorderStyleDotted, | ||
Dashed = YGBorderStyleDashed, | ||
}; | ||
|
||
template <> | ||
constexpr int32_t ordinalCount<BorderStyle>() { | ||
return 4; | ||
} | ||
|
||
constexpr BorderStyle scopedEnum(YGBorderStyle unscoped) { | ||
return static_cast<BorderStyle>(unscoped); | ||
} | ||
|
||
constexpr YGBorderStyle unscopedEnum(BorderStyle scoped) { | ||
return static_cast<YGBorderStyle>(scoped); | ||
} | ||
|
||
inline const char* toString(BorderStyle e) { | ||
return YGBorderStyleToString(unscopedEnum(e)); | ||
} | ||
|
||
} // namespace facebook::yoga |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters