Skip to content

Commit

Permalink
Revert "split out ColorComponents implementation to fix Android build"
Browse files Browse the repository at this point in the history
This reverts commit 53aba9b.
  • Loading branch information
ryanlntn committed Jan 8, 2024
1 parent 53aba9b commit 9f30b94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 18 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ namespace facebook::react {

enum class ColorSpace { sRGB, DisplayP3 };

// Declare the functions without providing definitions
ColorSpace getDefaultColorSpace();
void setDefaultColorSpace(ColorSpace newColorSpace);
static ColorSpace defaultColorSpace = ColorSpace::sRGB;
ColorSpace getDefaultColorSpace() {
return defaultColorSpace;
}
void setDefaultColorSpace(ColorSpace newColorSpace) {
defaultColorSpace = newColorSpace;
}

struct ColorComponents {
float red{0};
Expand Down

0 comments on commit 9f30b94

Please sign in to comment.